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 General Discussion » CExtTabPageContainerWnd Collapse All
Subject Author Date
tarou iiyama Apr 30, 2006 - 6:43 PM

hello

Drawing seems to go to PageInsert in CExtTabPageContainerWnd.
A screen flickers.

Drawing does not want to run in PageInsert.

----------------------------------------------------------------------------------

CExtTabPageContainerWnd cCExtTabPageContainerWnd;

for ( i = 0 ; i < 100 ; i++){
    cCExtTabPageContainerWnd.PageInsert( dialog , _T("dialog") );
}

----------------------------------------------------------------------------------

Technical Support May 3, 2006 - 2:40 AM

You can use the following approach:

CExtTabPageContainerWnd * pWndTPC = . . .
    pWndTPC->SetRedraw( FALSE ); 
 
    // insert pages here
    . . .
 
    pWndTPC->SetRedraw( TRUE );
You can also initialize the tab page container with page windows which are not visible and then show all of them at once using the BeginDeferWindowPos(), DeferWindowPos() and EndDeferWindowPos() APIs.

tarou iiyama May 3, 2006 - 7:37 AM

Hello

An answer.
Thank you.

tarou iiyama May 1, 2006 - 6:46 PM


Thanking you in advance.

Suhai Gyorgy May 3, 2006 - 1:30 AM

Hi!

I’m not part of the support team, but I’m guessing your problem might be this:
Check if your dialog that you are using as parameter in the PageInsert method is a CExtResizableDialog instead of CDialog.

See the previous thread. It says:
"First of all please check that you are using the CExtResizableDialog class instead of CDialog. Second, please check the properties of the dialog template resource: the WS_CLIPSIBLINGS and WS_CLIPCHILDREN styles should be applied. Finally, subclass all the controls on your dialog with Prof-UIS classes: CExtLabel for all static controls, CExtSliderWnd for sliders, CExtButton/CExtCheckBox/CExtRadioButton for buttons, CExtGroupBox for group boxes, and CExtComboBox for combo boxes."

Hope that helps:
Chris

tarou iiyama May 3, 2006 - 7:44 AM

Hello

I investigate it.

Thank You.