office 2003-style toolbar
-
hy, does anybody has an idea (or source) how to make an office 11-style toolbar in my mfc app? thanx for any input!
-
hy, does anybody has an idea (or source) how to make an office 11-style toolbar in my mfc app? thanx for any input!
-
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.
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
-
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
-
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.
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!
-
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!
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.
-
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.
ok, and how can i make the smooth color-fade? greets
-
ok, and how can i make the smooth color-fade? greets
-
oky, thanx a lot!