Professional UI Solutions
Site Map   /  Register


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.

Forums » Prof-UIS General Discussion » Controlbar of flexible size Collapse All
Subject Author Date
Listofer Andre Aug 22, 2007 - 11:49 PM

I want to create controlbar whose size should be flexible.

I’m using ribbonbar in my application. I want controlbar must be just below ribbonbar and if I have any other controlbar which is docked at bottom of window then this flexible controlbar should be occupied between bottom controlbar and ribbonbar. It should not get hidden behind bottom controlbar. It should work even if I change my screen resolution.

Technical Support Aug 23, 2007 - 12:17 PM

You should create all the bars first. Both of resizable control bars should be initially docked using the CExtControlBar::DockControlBarInnerOuter() method. The bottom control bar should be docked first:

pFirstBar->DockControlBarInnerOuter( AFX_IDW_DOCKBAR_BOTTOM, 1 );
pSecondBar->DockControlBarInnerOuter( AFX_IDW_DOCKBAR_LEFT, 2 );