共用方式為


SendDlgItemMessage

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function sends a message to the specified control in a dialog box.

Syntax

LONG SendDlgItemMessage( 
  HWND hDlg, 
  int nIDDlgItem, 
  UINT Msg, 
  WPARAM wParam, 
  LPARAM lParam
); 

Parameters

  • hDlg
    [in] Handle to the dialog box that contains the control.
  • nIDDlgItem
    [in] Specifies the identifier of the control that receives the message.
  • Msg
    [in] Specifies the message to be sent.
  • wParam
    [in] Specifies additional message-specific information.
  • lParam
    [in] Specifies additional message-specific information.

Return Value

The return value specifies the result of the message processing and depends on the message sent.

Remarks

The SendDlgItemMessage function does not return until the message has been processed.

Using SendDlgItemMessage is identical to retrieving a handle of the specified control and calling the SendMessage function.

Requirements

Header winuser.h
Library Dlgmgr.lib
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

SendMessage
Dialog Boxes Functions