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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Toolbar Alignment

Toolbar Alignment

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++algorithms
4 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.
  • A Offline
    A Offline
    akhil_sudheesh
    wrote on last edited by
    #1

    Hi, am new to coding and to mfc, am on an application development on mfc, the problem is in my toolbar alignment, i have 9 toolbars and i want to arrange as follows T1-T2-T3-T4-T9 T5-T6-T7-T8 Am using VS2010 and already tried of "DockPaneLeftOf" but its not helping me whenever i rebuilt my project all toolbars is appearing in a single column. please help me out, am tired out of searching :(( :doh:

    M 1 Reply Last reply
    0
    • A akhil_sudheesh

      Hi, am new to coding and to mfc, am on an application development on mfc, the problem is in my toolbar alignment, i have 9 toolbars and i want to arrange as follows T1-T2-T3-T4-T9 T5-T6-T7-T8 Am using VS2010 and already tried of "DockPaneLeftOf" but its not helping me whenever i rebuilt my project all toolbars is appearing in a single column. please help me out, am tired out of searching :(( :doh:

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      Don't forget to remove the registry entry associated with your application. The toolbar position might be written and read from the registry and position you try to setup in the code will be overridden by that. Also, be careful at the order you call DockPaneLeftOf; I think that you need to order them from right to left:

      DockPaneLeftOf(&T4, &T9);
      DockPaneLeftOf(T3, T4);
      DockPaneLeftOf(T2, T3);
      DockPaneLeftOf(T1, T2);

      Good luck.

      I'd rather be phishing!

      A 2 Replies Last reply
      0
      • M Maximilien

        Don't forget to remove the registry entry associated with your application. The toolbar position might be written and read from the registry and position you try to setup in the code will be overridden by that. Also, be careful at the order you call DockPaneLeftOf; I think that you need to order them from right to left:

        DockPaneLeftOf(&T4, &T9);
        DockPaneLeftOf(T3, T4);
        DockPaneLeftOf(T2, T3);
        DockPaneLeftOf(T1, T2);

        Good luck.

        I'd rather be phishing!

        A Offline
        A Offline
        akhil_sudheesh
        wrote on last edited by
        #3

        Thanks it works for the docking :) , but multiple columns i cant achieve that :( Does SetRows function do this job, then how to implement SetRows()

        1 Reply Last reply
        0
        • M Maximilien

          Don't forget to remove the registry entry associated with your application. The toolbar position might be written and read from the registry and position you try to setup in the code will be overridden by that. Also, be careful at the order you call DockPaneLeftOf; I think that you need to order them from right to left:

          DockPaneLeftOf(&T4, &T9);
          DockPaneLeftOf(T3, T4);
          DockPaneLeftOf(T2, T3);
          DockPaneLeftOf(T1, T2);

          Good luck.

          I'd rather be phishing!

          A Offline
          A Offline
          akhil_sudheesh
          wrote on last edited by
          #4

          thanks for the replay,i did the following and i got the order well but its still on a single row as some of the toolbar is not visible, how to end up in multiple rows

          DockPane(&m_wndMenuBar);
          DockPane(&tb9);
          DockPaneLeftOf(&tb8, &tb9);
          DockPaneLeftOf(&tb4, &tb8);
          DockPaneLeftOf(&m_wndToolBar, &tb4);
          DockPaneLeftOf(&tb1, &m_wndToolBar);
          DockPaneLeftOf(&tb7, &tb1);
          DockPaneLeftOf(&tb6, &tb7);
          DockPaneLeftOf(&tb3, &tb6);
          DockPaneLeftOf(&tb2, &tb3);

          A learner

          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