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 » CExtTabPageContainerWnd and resize Collapse All
Subject Author Date
Rado Manzela Feb 22, 2007 - 11:49 AM

Does CExtTabPageContainerWnd resize it’s child dialogs ?
Resizing of my dialog used as child in CExtTabPageContainerWnd is not working in my application.
Is it by design of CExtTabPageContainerWnd or is it my fault? (there is AddAnchor(IDC_GRID,__RDA_LT,__RDA_RB) in OnInitDialog)
Do I need to do something special to make it working ?

one more question - how to create grid in the dialog properly? I found no sample of grid on dialog, only as view.
Currently I create it from static control like this:
    CWnd *st = GetDlgItem(IDC_GRID);
    CRect rect;

    st->GetWindowRect(&rect);
    ScreenToClient(&rect);
    st->DestroyWindow();
    c_grid.Create(this,rect,IDC_GRID);

Is there some smarter solution ? This creates the grid without the borders althought I’ve tried
to call c_grid.ModifyStyle(WS_BORDER). How can I add the borders?

Thank you!

Rado Manzela Feb 23, 2007 - 4:51 AM

It works now, thank you!

Technical Support Feb 23, 2007 - 2:36 AM

Yes, the tab page container resizes its child windows. Make sure your page dialogs are child, visible, clip children and clip siblings. If your dialog template resource have the static frame or group box controls, then they should have their Z-orders greater than their child controls.

There is nothing wrong in the code that creates the grid. But you can also use the grids as a custom dialog control as it is demonstrated in this project.

If the problem persists, you can send us the project so we can help you.