Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
User Input
Keyboard Input
Notifications
 WM_KILLFOCUS Notification

  Switch on low bandwidth view
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 What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Value      Đonny   |   Edit   |   Show History
WM_KILLFOCUS = &H8
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker