Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Handler Not Invoked

Handler Not Invoked

Scheduled Pinned Locked Moved C / C++ / MFC
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    laiju
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups