CBN_SETFOCUS这个消息映射什么意思啊?
怎么用?

解决方案 »

  1.   

    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()
      

  2.   

    更正:
     ON_NOTIFY 应为 ON_CONTROL(wNotifyCode, id, memberFxn)
      

  3.   

    CBN -- Combo Box Notification
      

  4.   

    这里有个例子,仿照其他CBN消息添加
    http://www.codeproject.com/combobox/combobox_tut.asp
      

  5.   

    这是combobox被修改时触发的函数