Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Piotr C.
|
Feb 28, 2007 - 9:48 AM
|
I need a floating toolbar which has buttons arranged in two colums and three (or more) rows. I am able to do this using a standard MFC toolbar with SetButtonStyle function and TBBS_WRAPPED style set. Unfortunately, this doesn’t work when using CExtControlBar toolbar. How to resolve this? Is there another method to have a two-column toolbar?
Regards, Piotr
|
|
Technical Support
|
Mar 1, 2007 - 3:38 AM
|
There are more than one wrap flag supported for each button (CExtBarButton ) in a toolbar (CExtToolControlBar ):
__EVT_FLOAT
__EVT_HORZ
__EVT_VERT
This allows you to set up three different layouts for when the toolbar is floating, docked horizontally and docked vertically. So this feature extends the functionality provided by TBBS_WRAPPED . You can use CExtBarButton::IsWrap() and CExtBarButton::SetWrap() for managing these flags. There is a toolbar in the DRAWCLI sample that shows how it works.
|
|