SID CToolBar 怎么与View 通讯?或者说bar的按钮怎么调用View里的function

解决方案 »

  1.   

    直接添加消息映射到view就行了
      

  2.   


    void CMenuLeftView::OnMenuitemSearch() 
    {
    // TODO: Add your command handler code here
    MessageBox("D");
    }void CMenuLeftView::OnUpdateMenuitemSearch(CCmdUI* pCmdUI) 
    {
    // TODO: Add your command update UI handler code here
    MessageBox("D");

    }
    怎么没有效果?
      

  3.   

    Toolbar 与Menu的ID一样的,我把Menu去悼了,是否映射就没有效果了?