WM_POWERBROADCAST not received by message-only window in Windows XP
问题 I'm trying to find out whether broadcast messages will be sent to message only windows, i.e. created as: hWnd = CreateWindow(MAKEINTATOM(RegisterClass(&wnd)), NULL, 0, 0, 0, 0, 0, 0, HWND_MESSAGE, hInstance, 0); Thing is that I don't get any broadcast messages to that window... ;) 回答1: Your suspicions are correct. Message-only windows (those created by specifying HWND_MESSAGE for the hwndParent parameter of the CreateWindowEx function) do not receive broadcast notifications: A message-only