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.
Subject |
Author |
Date |
|
John Ritzenthaler
|
Feb 25, 2009 - 9:45 AM
|
CExtResizableDialog doesn’t allow the dialog to be sized smaller than the original size in the dialog resource. We design our dialogs to have an "optimal" size when initially opened. But this is only occasionally smallest allowable size. It would be useful to have a way to override the limitation or to specify a minimal size.
|
|
Technical Support
|
Mar 1, 2009 - 4:48 AM
|
We have the class hierarchy for that.
|
|
Technical Support
|
Feb 26, 2009 - 1:26 PM
|
The CExtResizableDialog class is derived from the CExtWA template decorator class. The CExtWA::SetMinTrackSize() , CExtWA::SetMaxTrackSize() and CExtWA::SetMaximizedRect() allow you to control minimal and maximal dialog sizes. By default, the minimal dialog sizes are set to its initial sizes. This is correct because the most of dialog windows contain layout of controls which is incorrect when the dialog is smaller than it’s designed. But you can invoke the CExtWA::SetMinTrackSize() method in dialog’s OnInitDialog() virtual method for enabling its resizing to smaller than initial sizes. By using the CExtWA::SetMinTrackSize() and CExtWA::SetMaxTrackSize() methods you can create dialogs which are allowed for horizontal only resizing or for vertical only resizing.
|
|