WM_SETFOCUS message
Sent to a window after it has gained the keyboard focus.
#define WM_SETFOCUS 0x0007
Parameters
- wParam
-
A handle to the window that has lost 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
To display a caret, an application should call the appropriate caret functions when it receives the WM_SETFOCUS message.
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
See also
- Reference
- SetFocus
- WM_KILLFOCUS
- Conceptual
- Keyboard Input
Show: