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 minimum size Collapse All
Subject Author Date
Chris G. Aug 17, 2009 - 7:28 AM

Hello Prof-UIS,

is there a way to limit the minimum width and height of a CExtControlBar instance? I would like to prevent the user resizing some of my control bars to dimensions smaller than their content.



Chris G. Aug 17, 2009 - 4:59 PM

Thank you, that was exactly what i needed.



Technical Support Aug 17, 2009 - 11:48 AM

The minimal width is computed by the CExtControlBar::_CalcDesiredMinHW() virtual method, minimal height is computed by the CExtControlBar::_CalcDesiredMinVH() virtual method:

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