Export (0) Print
Expand All

WM_GETDLGCODE (Windows CE 5.0)

Windows CE 5.0
Send Feedback

This message is sent to the dialog box procedure associated with a control. Normally, Windows handles all arrow-key and TAB-key input to the control. By responding to the WM_GETDLGCODE message, an application can take control of a particular type of input and process the input itself.

WM_GETDLGCODE wParam = 0; 
  lParam = (LPARAM)(LPMSG) lpMsg; 

Parameters

wParam
Not used.
lpMsg
NULL if the system is performing a query, or is otherwise a pointer to an MSG structure.

Return Values

One or more of the values, indicating which type of input the application processes and described in the following table, is returned.

ValueDescription
DLGC_BUTTONButton.
DLGC_DEFPUSHBUTTONDefault push button.
DLGC_HASSETSELEM_SETSEL messages.
DLGC_RADIOBUTTONRadio button.
DLGC_STATICStatic control.
DLGC_UNDEFPUSHBUTTONNon-default push button.
DLGC_WANTALLKEYSAll keyboard input.
DLGC_WANTARROWSDirection keys.
DLGC_WANTCHARSWM_CHAR messages.
DLGC_WANTMESSAGEAll keyboard input (the application passes this message in the MSG structure to the control).
DLGC_WANTTABTAB key.

The DefWindowProc function returns zero.

Remarks

Although the DefWindowProc function always returns zero in response to the WM_GETDLGCODE message, the window procedure for the predefined control classes return a code appropriate for each class.

The WM_GETDLGCODE message and the returned values are useful only with user-defined dialog box controls or standard controls modified by subclassing.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winuser.h.

See Also

DefWindowProc | EM_SETSEL | WM_CHAR | MSG | Dialog Boxes Messages


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Show:
© 2014 Microsoft