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 » CExtControlBar with minimum size Collapse All
Subject Author Date
Borremans Pierre Mar 9, 2011 - 1:00 AM

 we want that a CExtControlBar have a minimum size.

We overide the function _CalcDesiredMinHW, _CalcDesiredMinVH and _CalcDesiredMinFloatedSize.

When we try to reduce the CExtControlBar, it works great.

But when the CExtControlBar is docked or not, at the starting of the application if a previous size was saved in the registry, the CExtControlBar takes the older size.

How to resolve this problem ?

Technical Support Mar 9, 2011 - 12:41 PM

It’s enough to override the CExtControlBar::_CalcDesiredMinHW() and CExtControlBar::_CalcDesiredMinVH() virtual methods. Please check the method signatures and try to erase the registry state of your application.