|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
| -
| Header File
| winuser.h
| Unicode
| No
| Platform Notes
| None
|
|
|
WM_GETDLGCODE
The WM_GETDLGCODE 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
Parameters
This message has no parameters.
Return Values
The return value is one or more of the following values, indicating which type
of input the application processes.
Value
| Meaning
| DLGC_BUTTON
| Button.
| DLGC_DEFPUSHBUTTON
| Default push button.
| DLGC_HASSETSEL
| EM_SETSEL messages.
| DLGC_RADIOBUTTON
| Radio button.
| DLGC_STATIC
| Static control.
| DLGC_UNDEFPUSHBUTTON
| Nondefault push button.
| DLGC_WANTALLKEYS
| All keyboard input.
| DLGC_WANTARROWS
| Direction keys.
| DLGC_WANTCHARS
| WM_CHAR messages.
| DLGC_WANTMESSAGE
| All keyboard input (the application passes this message on to a control).
| DLGC_WANTTAB
| TAB key.
|
Default Action
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.
See Also
DefWindowProc, EM_SETSEL, WM_CHAR
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|