Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>postmessage()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
PostMessage()
Place a message in a window's message queue
------------------------------------------------------------------------------

Syntax
PostMessage( <hWnd>, <nMsg>, <nwParam>, <nlParam> )   -->   nResult

Arguments
<hWnd> is the handle to the window to receive the message.

<nMsg> is an integer specifying the message (one of the WM_*
values defined in WINDOWS.CH, or a user-specified value).

<nwParam> is a word (16-bit) value to pass with the message.

<nlParam> is a long (32-bit) value to pass with the message.

Returns
An integer is returned, which will be zero (0) if an error
occurred.

Description
This function can be used to place a message in a window's
message queue.  The window will process the message after any
other messages currently in its message queue.

For a control, use the SendMessage() function.

Example
// Arrange some future event
PostMessage( hWnd, WM_USER + 1, 0, 0 )


See Also: SendMessage()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson