WM_SETFOCUS Notification

The WM_SETFOCUS message is sent to a window after it has gained the keyboard focus.

Syntax

WM_SETFOCUS

    WPARAM wParam
    LPARAM lParam;
    

Parameters

wParam
Handle to the window that has lost the keyboard focus. This parameter can be NULL.
lParam
This parameter is not used.

Return Value

An application should return zero if it processes this message.

Remarks

To display a caret, an application should call the appropriate caret functions when it receives the WM_SETFOCUS message.

Notification Requirements

Minimum DLL Version None
HeaderDeclared in Winuser.h, include Windows.h
Minimum operating systems Windows 95, Windows NT 3.1

See Also

Tags :


Community Content

Đonny
Value
WM_SETFOCUS = &H7
Tags : value constant

Page view tracker