读书人

40分悬赏WM_SetFocus 例子给了马上给分

发布时间: 2012-04-06 12:22:24 作者: rapoo

40分悬赏WM_SetFocus 例子给了马上给分
如题 给出例子 出口如何响应 WM_SetFocus 和WM_KillFocus

[解决办法]
WM_SETFOCUS Notification
--------------------------------------------
The WM_SETFOCUS message is sent to a window after it has gained the keyboard focus.


WM_KILLFOCUS Notification
--------------------------------------------
The WM_KILLFOCUS message is sent to a window immediately before it loses the keyboard focus.

[解决办法]
case WM_SETFOCUS :
SetFocus (hwndEdit) ;
return 0 ;

[解决办法]

探讨
case WM_SETFOCUS :
SetFocus (hwndEdit) ;
return 0 ;

读书人网 >VC/MFC

热点推荐