windows_programming_notes.nbk: Home | Index | Next Page: WM_GETFONT | Previous Page: WM_FONTCHANGE


 WM_GETDLGCODE

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.

Syntax

    WM_GETDLGCODE
        WPARAM wParam
        LPARAM lParam;

Parameters

Return Value

The return value is one or more of the following values, indicating which type of input the application processes.

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.

Notification Requirements


Message Handler Macro

#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