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 » How to set minimal width for the resizable control bar? Collapse All
Subject Author Date
mai mike Aug 13, 2007 - 9:22 AM

Dear
I create a resizable control bar(which derived from CExtControlBar), but what i want to do is to set the minimal width for this control bar, so when the control bar reach the minimal width, it cann’t be adjusted more smaller,but can be adjusted more larger.
How can i implement this feature?

Thank you in advance!
Mike.Mai

Suhai Gyorgy Aug 13, 2007 - 12:31 PM

Support’s answer to a similar question:

You should override the following two methods of the CExtControlBar class:

virtual INT _CalcDesiredMinHW() const;
virtual INT _CalcDesiredMinVH() const;

The _CalcDesiredMinHW() virtual method calculates the minimum width and the _CalcDesiredMinVH() does the same for the height.