共用方式為


Message Queue Functions

Send Feedback

The following table shows the message queue functions with a description of the purpose of each.

Programming element PPC SP Description
DispatchMessage X X This function dispatches a message to a window procedure.
GetMessage X X This function retrieves a message from the calling thread's message queue and places it in the specified structure.
GetMessagePos X X This function returns a long value that gives the cursor position in screen coordinates.
GetMessageQueueReadyTimeStamp X X This function retrieves the time at which a specified thread was last ready to process a message.
GetMessageSource X X This function determines the source of a keyboard message.
InSendMessage X X This function determines whether the current window procedure is processing a message that was sent from another thread (in the same process or a different process) by a call to the SendMessage function.
PeekMessage X X This function checks a thread message queue for a message and places the message (if any) in the specified structure.
PostMessage X X This function places 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.
PostQuitMessage X X This function indicates to Windows that a thread has made a request to terminate (quit).
PostThreadMessage X X This function places a message in the message queue of the specified thread and then returns without waiting for the thread to process the message.
RegisterWindowMessage X X This function defines a new window message that is guaranteed to be unique throughout the system.
SendMessage X X This function sends the specified message to a window or windows.
SendMessageTimeout X X This function sends a specified message to a window by calling the window procedure for the specified window, with the message as one of the parameters for the window procedure.
SendNotifyMessage X X This function sends the specified message to the given window.
TranslateMessage X X This function translates virtual-key messages into character messages.

See Also

Message Queue Reference

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.