积极等待,正确答案,马上给分。

解决方案 »

  1.   

    http://topic.csdn.net/t/20010207/13/65938.html
      

  2.   

    .h
    #define ID_MENUBUTTON1 WM_USER+1CButton button1;afx_msg void OnChangeEdit1();
    //{{AFX_MSG(CRadarFullView)
    ......
    afx_msg void OnMenuButton1(); 
    .....
    //}}AFX_MSG
    DECLARE_MESSAGE_MAP()
    .CPP
    BEGIN_MESSAGE_MAP(CRadarFullView, CFormView)
    //{{AFX_MSG_MAP(CRadarFullView)
    .....
    ON_BN_CLICKED(ID_MENUBUTTON1, OnMenuButton1)
    ........
    //}}AFX_MSG_MAP
    END_MESSAGE_MAP()CRect rectmenu[4]={CRect(802,400,857,420),CRect(857,400,912,420),CRect(912,400,967,420),CRect(967,400,1018,420)}button1.Create(_T("MENU1"),WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON,rectmenu[0],this,ID_MENUBUTTON1);
    void CxxxView::OnMenuButton1()
    { .....
    }