Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS General Discussion » CExtMenuControlBar and CExtComboBox Collapse All
Subject Author Date
Moby Dick Mar 7, 2005 - 6:11 AM

Hi,


I’ve a menu control bar. I need to place a CExtComboBox at the right of this menu bar.


I’ve successfully added the CExtComboBox in the menu bar but it was placed at the rigth of the last menu and not at the right of the menu bar.


Can you tell me how to do this ?


Thanks a lot.

Technical Support Mar 7, 2005 - 11:54 AM

To align the combo box to the right of the menu bar, create a CExtMenuControlBar-derived class and override the CExtToolControlBar::_RecalcPositionsImpl() internal virtual method. Your method should invoke the parent method, analyze a position of the last CExtBarButton object in the menu bar and move it by calling the CExtBarButton::SetRect() method. It is this last button which sets the positon of the combo box.

Moby Dick Mar 8, 2005 - 10:40 AM

Hi,


That’s work fine.


Thanks a lot.