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 |
|
Brett Cook
|
Oct 26, 2006 - 2:59 PM
|
Hello Tech Support,
I am wondering if it is possible to arrange controls in a CExtResizableDialog based on whether the dialog is docked at the top/bottom or at the left/right. So if the dialog is docked at the left/right, I’d like to arrange the controls in a vertical manner, whereas if the dialog is docked at the top/bottom, I’d like to arrange the controls in a horizontal manner.
Do you know if this kind of functionality is possible?
Thanks Brett
|
|
Suhai Gyorgy
|
Oct 27, 2006 - 1:43 AM
|
In Prof-UIS there’s no built-in feature like that, as long as I know. But you can code it, handling WM_SIZE message and calling MoveWindow for every control with parameters based on values you get from GetClientRect ( resulting rect’s "right" and "bottom" members having width and height of your resizable dialog)
|
|
Brett Cook
|
Oct 27, 2006 - 11:20 AM
|
Thank you. I will try out something like as you describe. I wonder if re-anchoring the controls will work inside the WM_SIZE handler?
|
|
Technical Support
|
Oct 30, 2006 - 6:09 AM
|
The CExtWA template class moves anchored windows when it receives the WM_SIZE standard Windows message. You need to handle only this message if you want to implement your own layout manager.
|
|