CBN_SETFOCUS Notification--------------------------------------------------------------------------------The CBN_SETFOCUS notification message is sent when a combo box receives the keyboard focus. The parent window of the combo box receives this notification message through the WM_COMMAND message. Syntax CBN_SETFOCUS WPARAM wParam LPARAM lParam;
ParameterswParam The low-order word specifies the control identifier of the combo box. The high-order word specifies the notification message. lParam Handle to the combo box. ///////////////////////////////////////////////////////////////////// combo box的控件通知消息,当combo box获得焦点时向父窗口发送通知,父窗口在 BEGIN_MESSAGE_MAP(CGLSampleView, CView) // 在这里添加 ON_NOTIFY( CBN_SETFOCUS, id, memberFxn )//id控件id,memberFxn响应函数END_MESSAGE_MAP()
CBN_SETFOCUS WPARAM wParam
LPARAM lParam;
ParameterswParam
The low-order word specifies the control identifier of the combo box.
The high-order word specifies the notification message. lParam
Handle to the combo box.
/////////////////////////////////////////////////////////////////////
combo box的控件通知消息,当combo box获得焦点时向父窗口发送通知,父窗口在
BEGIN_MESSAGE_MAP(CGLSampleView, CView)
// 在这里添加
ON_NOTIFY( CBN_SETFOCUS, id, memberFxn )//id控件id,memberFxn响应函数END_MESSAGE_MAP()
ON_NOTIFY 应为 ON_CONTROL(wNotifyCode, id, memberFxn)
http://www.codeproject.com/combobox/combobox_tut.asp