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>sendmessage()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SendMessage()
Send a message to a window
------------------------------------------------------------------------------

Syntax
SendMessage( <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.  The value depends on the message
sent, but is often of no interest.

Description
This function can be used to send a message direct to a
window.  The window will be called upon to process the message
immediately.  Usually you would be better to use the
PostMessage() function instead.

Example
// Get the child to copy its data to the clipboard
SendMessage( hChildWnd, WM_COPY, 0, 0 )


See Also: PostMessage()

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