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. office 2003-style toolbar

office 2003-style toolbar

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
9 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
    schaereran gmx net
    wrote on last edited by
    #1

    hy, does anybody has an idea (or source) how to make an office 11-style toolbar in my mfc app? thanx for any input!

    P 1 Reply Last reply
    0
    • S schaereran gmx net

      hy, does anybody has an idea (or source) how to make an office 11-style toolbar in my mfc app? thanx for any input!

      P Offline
      P Offline
      puzzolino
      wrote on last edited by
      #2

      Office doesn't use normal toolbars; you can get the same feel by creating an a tear off rebar (w/custom draw) you can find on this site.

      S 1 Reply Last reply
      0
      • P puzzolino

        Office doesn't use normal toolbars; you can get the same feel by creating an a tear off rebar (w/custom draw) you can find on this site.

        S Offline
        S Offline
        schaereran gmx net
        wrote on last edited by
        #3

        Hy, but how can i make, that it LOOKS like office 2003 ? screenshots: http://www.pcwelt.de/ratgeber/screenshots/ggalerie.php?bildname=http://www.pcwelt.de/graphics/screenshots/14/14&id=14&bildanzahl=54&seite=2&neu=0&name=Office 11&link=&linktext=# thanx, greets

        P 1 Reply Last reply
        0
        • S schaereran gmx net

          Hy, but how can i make, that it LOOKS like office 2003 ? screenshots: http://www.pcwelt.de/ratgeber/screenshots/ggalerie.php?bildname=http://www.pcwelt.de/graphics/screenshots/14/14&id=14&bildanzahl=54&seite=2&neu=0&name=Office 11&link=&linktext=# thanx, greets

          P Offline
          P Offline
          puzzolino
          wrote on last edited by
          #4

          Well, handling custom draw in your rebar lets you draw your custom vertical gripper, while doing it in your toolbars enables you create the gradient effect and custom check boxes... Try searching articles on custom draw on this site.

          S 1 Reply Last reply
          0
          • P puzzolino

            Well, handling custom draw in your rebar lets you draw your custom vertical gripper, while doing it in your toolbars enables you create the gradient effect and custom check boxes... Try searching articles on custom draw on this site.

            S Offline
            S Offline
            schaereran gmx net
            wrote on last edited by
            #5

            hy, thanx for the tip. now i found a program called menubarxp. there ist a function which draws the gripper: void CXPToolBar::CreateGripperBrush () { ASSERT (m_brGripperHorz.GetSafeHandle () == NULL); ASSERT (m_brGripperVert.GetSafeHandle () == NULL); WORD horzHatchBits [8] = { 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00 }; CBitmap bmpGripperHorz; bmpGripperHorz.CreateBitmap (8, 8, 1, 1, horzHatchBits); m_brGripperHorz.CreatePatternBrush (&bmpGripperHorz); WORD vertHatchBits[8] = { 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA }; CBitmap bmpGripperVert; bmpGripperVert.CreateBitmap (8, 8, 1, 1, vertHatchBits); m_brGripperVert.CreatePatternBrush (&bmpGripperVert); } now, when i change the horzHatchBits , i get a different looking gripper. but i dont see the point! how can i make now a gripper with 4 small rectangles like in office 2003 ? thanx 4 your help!

            P 1 Reply Last reply
            0
            • S schaereran gmx net

              hy, thanx for the tip. now i found a program called menubarxp. there ist a function which draws the gripper: void CXPToolBar::CreateGripperBrush () { ASSERT (m_brGripperHorz.GetSafeHandle () == NULL); ASSERT (m_brGripperVert.GetSafeHandle () == NULL); WORD horzHatchBits [8] = { 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00 }; CBitmap bmpGripperHorz; bmpGripperHorz.CreateBitmap (8, 8, 1, 1, horzHatchBits); m_brGripperHorz.CreatePatternBrush (&bmpGripperHorz); WORD vertHatchBits[8] = { 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA }; CBitmap bmpGripperVert; bmpGripperVert.CreateBitmap (8, 8, 1, 1, vertHatchBits); m_brGripperVert.CreatePatternBrush (&bmpGripperVert); } now, when i change the horzHatchBits , i get a different looking gripper. but i dont see the point! how can i make now a gripper with 4 small rectangles like in office 2003 ? thanx 4 your help!

              P Offline
              P Offline
              puzzolino
              wrote on last edited by
              #6

              Well, I think you'll have to draw it as you like... zoom in Office's gripper and try to draw something similar, you should have a device context to draw to; note that you can increase the width of the gripper by sending a message to the rebar or toolbar, if you want.

              S 1 Reply Last reply
              0
              • P puzzolino

                Well, I think you'll have to draw it as you like... zoom in Office's gripper and try to draw something similar, you should have a device context to draw to; note that you can increase the width of the gripper by sending a message to the rebar or toolbar, if you want.

                S Offline
                S Offline
                schaereran gmx net
                wrote on last edited by
                #7

                ok, and how can i make the smooth color-fade? greets

                P 1 Reply Last reply
                0
                • S schaereran gmx net

                  ok, and how can i make the smooth color-fade? greets

                  P Offline
                  P Offline
                  puzzolino
                  wrote on last edited by
                  #8

                  Try GradientFill.

                  S 1 Reply Last reply
                  0
                  • P puzzolino

                    Try GradientFill.

                    S Offline
                    S Offline
                    schaereran gmx net
                    wrote on last edited by
                    #9

                    oky, thanx a lot!

                    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