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 Tech Support » CExtResizableDialog Collapse All
Subject Author Date
Dusan Gibarac Mar 30, 2007 - 2:20 PM

We do not need ability to resize the window. Can we use class CExtResizableDialog and some initialization that prevents resizing or we have to use CDialog instead? Are we losing anything using CDialog instead of CExtResizableDialog aside resizing feature?

Dusan

Dusan Gibarac Mar 30, 2007 - 3:31 PM

Resolved as explain somewhere else:
In form OnInitDialog function we say:     ShowSizeGrip(false);    AND
form resorce Border choice switched from ’resizable’ to anything else.

Technical Support Mar 31, 2007 - 9:44 AM

In some cases you may need to restrict dialog resizing partially (e.g. only horizontally, only vertically or only greater than some size and less than some other size). This can be set with the SetMinTrackSize() and SetMaxTrackSize() methods that should be called in the OnInitDialog() method of your dialog class. These methods are declared in the CExtWA template class which is used as the base class of CExtResizableDialog.

Generally, the CExtResizableDialog class is an extended version of the MFC’s CDialog. It is extended by the CExtWA template class (which provides anchoring features) and by the CExtWS template class (which provides a skinned look of the dialog’s client area). You can use any of these template classes with your MFC window classes instead of CExtResizableDialog.