windows_programming_notes.nbk: Home | Index | Next Page: WM_GETFONT | Previous Page: WM_FONTCHANGE
The WM_GETDLGCODE message is sent to the window procedure associated with a control. By default, the system handles all keyboard input to the control; the system interprets certain types of keyboard input as dialog box navigation keys. To override this default behavior, the control can respond to the WM_GETDLGCODE message to indicate the types of input it wants to process itself.
WM_GETDLGCODE WPARAM wParam LPARAM lParam;
The return value is one or more of the following values, indicating which type of input the application processes.
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.
#define HANDLE_WM_GETDLGCODE(hwnd,wParam,lParam,fn) (LRESULT)(DWORD)(UINT)(fn)(hwnd,(LPMSG)(lParam))
This is sort of useless - you don't get the vitual key that windows is asking about!
windows_programming_notes.nbk: Home | Index | Next Page: WM_GETFONT | Previous Page: WM_FONTCHANGE
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time