Events
19 May, 18 - 23 May, 00
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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
Events
19 May, 18 - 23 May, 00
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today