title | description | ms.assetid | keywords | topic_type | api_name | api_location | api_type | ms.topic | ms.date | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
WM_SETFOCUS message (Winuser.h) |
Sent to a window after it has gained the keyboard focus. |
77180e4c-95a6-41a4-93d9-033381ae7543 |
|
|
|
|
|
reference |
05/31/2018 |
Sent to a window after it has gained the keyboard focus.
#define WM_SETFOCUS 0x0007
-
wParam
-
A handle to the window that has lost the keyboard focus. This parameter can be NULL.
-
lParam
-
This parameter is not used.
An application should return zero if it processes this message.
To display a caret, an application should call the appropriate caret functions when it receives the WM_SETFOCUS message.
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
Header |
|
-
Reference
-
Conceptual