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>senddlgitemmessage()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SendDlgItemMessage()
Send a message to a control in a dialog box
------------------------------------------------------------------------------

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

Arguments
<hWnd> is the handle to the dialog window containing the control.

<nId> is the numeric id of the control.

<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 to a control in a
dialog box.  The control will be called upon to process the
message immediately.

This function uses the control's id to get the handle of the
control, and then calls the SendMessage() function.

Example
// Get the control to copy its data to the clipboard
SendDlgItemMessage( hWndDlg, nIdEdit, WM_COPY, 0, 0 )


See Also: SendMessage()

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