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 » How to set a minimum width of the CExtControlbar? Collapse All
Subject Author Date
Michael chang Sep 2, 2009 - 12:37 AM

I am using many resizable CExtControlbar.

I want to set a minimun(or maximum) width and height for each CExtControlbar


How can i set the size of the CExtcontrolbar?

Technical Support Sep 2, 2009 - 1:00 PM

The CExtControlBar window is designed as a fully resizable without any limits. It’s not a very good idea to limit its size. The size of one particular CExtControlBar window typically mutually depends from sizes of other neighborhood CExtControlBar windows. But you can override the CExtControlBar::_CalcDesiredMinHW() virtual method and return the minimal width, the CExtControlBar::_CalcDesiredMinVH() virtual method and return the minimal height, the CExtControlBar::_CalcDesiredMinFloatedSize() virtual method and return the minimal floating bar size.