WM_KILLFOCUS Notification

The WM_KILLFOCUS message is sent to a window immediately before it loses the keyboard focus.

Syntax

WM_KILLFOCUS

    WPARAM wParam
    LPARAM lParam;
    

Parameters

wParam
Handle to the window that receives 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

If an application is displaying a caret, the caret should be destroyed at this point.

While processing this message, do not make any function calls that display or activate a window. This causes the thread to yield control and can cause the application to stop responding to messages. For more information, see Message Deadlocks.

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_KILLFOCUS = &H8
Tags : value constant

Page view tracker