windows_programming_notes.nbk: Home | Index | Next Page: WM_SETFONT | Previous Page: WM_SETCURSOR
The WM_SETFOCUS message is sent to a window after it has gained the keyboard focus.
A window receives this message through its WindowProc function.
LRESULT CALLBACK WindowProc( HWND hwnd, // handle to window UINT uMsg, // WM_SETFOCUS WPARAM wParam, // handle to window (HWND) LPARAM lParam // 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.
windows_programming_notes.nbk: Home | Index | Next Page: WM_SETFONT | Previous Page: WM_SETCURSOR
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time