WM_SETFOCUS

WM_SETFOCUS

hwndLoseFocus = (HWND) wParam; /* handle of window losing focus */

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

Parameters

hwndLoseFocus

Value of wParam. Identifies the window that has lost the keyboard focus (may be NULL).

Return Value

An application should return zero if it processes this message.

Comments

To display a caret, an application should call the appropriate caret functions at this point.

See Also

SetFocus, WM_SETFOCUS