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. Managed C++/CLI
  4. Fixed toolbars in SDI app

Fixed toolbars in SDI app

Scheduled Pinned Locked Moved Managed C++/CLI
helptutorialquestion
3 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.
  • R Offline
    R Offline
    RoyceF
    wrote on last edited by
    #1

    Hi, I have a SDI app to which I need to add a second fixed toolbar positioned to the right of the first one. Does anyone know how to do this? Thanks for any help, Royce

    N 1 Reply Last reply
    0
    • R RoyceF

      Hi, I have a SDI app to which I need to add a second fixed toolbar positioned to the right of the first one. Does anyone know how to do this? Thanks for any help, Royce

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      Try this :

      RecalcLayout();
      CRect rect;
      m_wndToolBar.GetWindowRect(&rect);
      rect.left++;
      DockControlBar(&m_wndToolBar2,AFX_IDW_DOCKBAR_TOP,rect);

      R 1 Reply Last reply
      0
      • N Nish Nishant

        Try this :

        RecalcLayout();
        CRect rect;
        m_wndToolBar.GetWindowRect(&rect);
        rect.left++;
        DockControlBar(&m_wndToolBar2,AFX_IDW_DOCKBAR_TOP,rect);

        R Offline
        R Offline
        RoyceF
        wrote on last edited by
        #3

        Thanks, Nishant, for the help. However, the rect parameter is apparently ignored. This always docks the 2nd toolbar under the first one against the left frame border.

        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