呵呵,看帮助嘛<br>PostMessage<br>The PostMessage function places (posts) a message in the message queue associated with the thread that created the specified window and then returns without waiting for the thread to process the message. Messages in a message queue are retrieved by calls to the GetMessage or PeekMessage function. <br><br>BOOL PostMessage(<br> HWND hWnd, // handle of destination window<br> UINT Msg, // message to post<br> WPARAM wParam, // first message parameter<br> LPARAM lParam // second message parameter<br>);<br> <br>Parameters<br>hWnd <br>Handle to the window whose window procedure is to receive the message. Two values have special meanings: Value Meaning <br>HWND_BROADCAST The message is posted to all top-level windows in the system, including disabled or invisible unowned windows, overlapped windows, and pop-up windows. The message is not posted to child windows. <br>NULL The function behaves like a call to PostThreadMessage with the dwThreadId parameter set to the identifier of the current thread. <br><br><br>Msg <br>Specifies the message to be posted. <br>wParam <br>Specifies additional message-specific information. <br>lParam <br>Specifies additional message-specific information. <br>Return Values<br>If the function succeeds, the return value is nonzero.<br><br>If the function fails, the return value is zero. To get extended error information, callGetLastError. <br>