Handler Not Invoked
-
Iam using MDI Appln. I added the foll. menus under the Veiw menu created by default by the appln. 1)"OSDToolBar" (whose ID is ID ID_VIEW_DRAWTOOLBAR) 2)"ActionEditor"(whose ID is ID ID_VIEW_ACTIONEDITOR) the handler for ID_VIEW_ACTIONEDITOR is called before and after creating the first MDI Child Window. But strangely the handler for ID_VIEW_DRAWTOOLBAR wont invoke after creating the first MDI Child Window. Can anyone let me know where I am going wrong / is there anything Iam overlooking.The message map and handlers are given below. BEGIN_MESSAGE_MAP(CMainFrame, CMDIFrameWnd) ON_WM_CREATE() ON_COMMAND(ID_VIEW_DRAWTOOLBAR, OnDrawToolBar) ON_UPDATE_COMMAND_UI(ID_VIEW_DRAWTOOLBAR, OnUpdateDrawToolBar) ON_COMMAND(ID_VIEW_ACTIONEDITOR, OnViewFunction) ON_UPDATE_COMMAND_UI(ID_VIEW_ACTIONEDITOR, OnUpdateViewFunction) END_MESSAGE_MAP() void CMainFrame::OnDrawToolBar() { if (m_bUICtrlBar) { m_bUICtrlBar = false; ShowControlBar(&m_UICtrlsBar, m_bUICtrlBar, false ); } else { m_bUICtrlBar = true; ShowControlBar(&m_UICtrlsBar, m_bUICtrlBar, false ); } } laiju