如何产生WM_SETFOCUS消息???
case WM_SETFOCUS :
SetFocus (hwndEdit) ;//该函数对指定的窗口设置键盘焦点
return 0 ;
代码里面有一个这个,我想问一下这个WM_SETFOCUS 消息是怎样产生的???
------解决方案--------------------WM_SETFOCUS message
Sent to a window after it has gained the keyboard focus.
C++
#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
Winuser.h (include Windows.h)
See also
Reference
SetFocus
WM_KILLFOCUS
Conceptual
Keyboard Input
------解决方案--------------------如何产生?你点一下文本框就会产生这个消息的呀