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. MFC: Creating and showing a second, docking toolbar

MFC: Creating and showing a second, docking toolbar

Scheduled Pinned Locked Moved C / C++ / MFC
c++architecturequestion
2 Posts 2 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.
  • S Offline
    S Offline
    skfnmuisl dmufa oi
    wrote on last edited by
    #1

    Hi, I've created a MDI project with the Doc/View architecture (which I don't use, but it has advantages). As you will know, CMainFrame initialises the standard docking toolbar. But I wanted another one, that contains dynamically updated buttons depending on the MDIChildWindow that is active. So I've got two questions: 1. How does the CMDIFrameWnd get message if a new child window has been created by CDocTemplate::OpenDocumentFile(NULL), and 2. how can I create a second, docking toolbar in the Mainframe Thanks in advance, Karl

    T 1 Reply Last reply
    0
    • S skfnmuisl dmufa oi

      Hi, I've created a MDI project with the Doc/View architecture (which I don't use, but it has advantages). As you will know, CMainFrame initialises the standard docking toolbar. But I wanted another one, that contains dynamically updated buttons depending on the MDIChildWindow that is active. So I've got two questions: 1. How does the CMDIFrameWnd get message if a new child window has been created by CDocTemplate::OpenDocumentFile(NULL), and 2. how can I create a second, docking toolbar in the Mainframe Thanks in advance, Karl

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      How does the CMDIFrameWnd get message if a new child window has been created by CDocTemplate::OpenDocumentFile(NULL) Check CWnd::OnMdiActivate. 2. how can I create a second, docking toolbar in the Mainframe Just like the first one. Add a CToolBar member to CMainFrame class and call CToolBar::Create and CToolBar::LoadToolBar. Have a look at CMainFrame::OnCreate for details. Tomasz Sowinski -- http://www.shooltz.com

      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