Compartilhar via


WM_SETFOCUS

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

Syntax

WM_SETFOCUS hwndLoseFocus = (HWND) wParam;

Parameters

  • hwndLoseFocus
    Handle to the window that has lost the keyboard focus. This parameter can be NULL.

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.

Requirements

Header winuser.h
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

SetFocus
WM_KILLFOCUS