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 » How to anchor a CExtResizableDialog to a CExtTabPageContainerFlatWnd Collapse All
Subject Author Date
Roberto MAnes Feb 15, 2005 - 5:09 AM

I have a CExtTabPageContainerFlatWnd declared as a child of a CExtResizableDialog.
The CExtTabPageContainerFlatWnd contains as well for each TabPage one CExtResizableDialog.
I anchored the CExtTabPageContainerFlatWnd to the main CExtResizableDialog container and it works,
but I cannot anchor the children dialogs to the CExtTabPageContainerFlatWnd. Do I have to catch the
OnSize message of the CExtTabPageContainerFlatWnd sending the WM_SIZE message to each child or can I
still use the AddAnchor method you supplied in any way?
Thanks in advance for your help

Technical Support Feb 15, 2005 - 8:06 AM

You say that you have a flat tab page container that contains several child resizable dialogs as tab pages. The anchoring operation for each child dialog deals only with two windows: the child dialog as a page and some control on this child dialog.

This operation for child page dialog has nothing to do with the tab page container window. So, we will discuss only page dialogs and their child controls.

The CExtResizableDialog::AddAnchor() method performs the anchoring of some window that is a child contol of the page dialog. So, you need to define CExtResizableDialog-derived classes for each tab page dialog. Then handle the WM_INITDIALOG message in each page dialog and put AddAnchor() invocations into each OnInitDialog() method.

Roberto MAnes Feb 16, 2005 - 3:08 AM

Attention  Technical support<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>


<o:p> </o:p>


Thanks for your prompt replay but I already did it. I found out anyway that my CExtResisableDialog child pages didn’t get the resize command because I didn’t invoke the ShowSizeGrip(true) method for each of them. The problem is that I don’t want to see the gripper on these pages because it’s already present in the main CExtResizableDIalog. Here follows the scheme to help you to understand the situation.<o:p></o:p>


<o:p> </o:p>


CExtResizableDialog<o:p></o:p>


è     CExtTabPageContainerWnd<o:p></o:p>


-> Page 0 CExtResizableDialog<o:p></o:p>


-> Page 1 CExtResizableDialog<o:p></o:p>


<o:p> </o:p>


Better If you would have any work around to remove the grippers for the child dialogs.<o:p></o:p>


<o:p> </o:p>


Regards <o:p></o:p>


Roberto Manes<o:p></o:p>

Technical Support Feb 16, 2005 - 9:51 AM

It seems your idea of automatic removing of the resize grippers for child dialogs absolutely makes sense. The only "but" is that somebody has been using child dialogs with such grippers and wants to change nothing. So, if somebody needs this, he can easily remove these grippers manually.