From ReliCodia

BOOL PostMessage(
   HWND hWnd,
   UINT Msg,
   WPARAM wParam,
   LPARAM lParam

PostMessage posts a message to the Windows message queue, to be processed at a later time. The processing will happen when the message is retrieved from the queue (usually by the message loop) and dispatched to the Window Procedure. PostMessage does not wait for the message to be processed. It returns a non-zero value if the message was successfully posted.


PostMessage can be called from Visual Basic using the following declaration

The parameters are the same as to SendMessage.

See also: SendMessage, PostThreadMessage.