31.2.15 Message

Message functions read and process Windows messages in an application's message queue. Messages are the input to the application. They represent events that the application may need to respond to. A message is a data structure that contains a message identifier and message parameters. The content of the parameters varies with the message type. The following list briefly describes each message function:

Function Description

CallWindowProc Passes message information to the specified function
DefFrameProc Provides default processing for those multiple document interface (MDI) frame window messages that an application does not process
DefWindowProc Provides default processing for those window messages that an application does not process
DispatchMessage Passes a message to the window function of the specified window
EnumQueueMessages Enumerates all messages in thread's message queue
GetMessage Retrieves a message from the specified range of messages
GetMessageExtraInfo Retrieves information about a hardware message
GetMessagePos Returns the position of the mouse at the time the last message was retrieved
GetMessageTime Returns the time at which the last message was retrieved
GetQueueStatus Returns information about what messages are in the queue
InSendMessage Determines whether the current window function is processing a message passed to it through a call to the SendMessage function
InsertQueueMessage Inserts a message into the message queue
PeekMessage Checks the application queue and places the message appropriately
PeekMessageEx Peeks for messages with finer filtering
PostAppMessage Posts a message to the application
PostMessage Places a message in the application queue
PostQuitMessage Posts a WM_QUIT message to the application
PostThreadMessage Posts a message to a thread.
RegisterHotKey Registers a hot key for the current thread
RegisterWindowMessage Defines a window message that is unique throughout the system
ReplyMessage Replies to a message
SendMessage Sends a message to a window or windows
SendNotifyMessage Sends a message synchronously to the same thread and asynchronously to other threads
SetMessageQueue Creates a new message queue of a different size
SetQueueMsg Sets the contents of the specified message
TranslateMessage Translates virtual key-stroke messages into character messages
UnregisterHotKey Unregisters a hot key previously registered for the current thread
WaitMessage Yields control to other applications