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 » CExtPaintManager Collapse All
Subject Author Date
Paolo Giustinoni Aug 21, 2006 - 10:37 AM

I have a SDI project and I use the InstallPaintManager(RUNTIME_CLASS(CExtPaintManagerOffice2003)) function in CMainFrame (derived from CExtNCW < CFrameWnd >) to paint the window like Office2003.
My problem is that I have to call some dialog box in the same style.
If I call the same function in my dialog box (in the constructor or in InitDialog() function) the main window is repainted.
There is a method to avoid this call and have the dialog box in the same style?

Thanks, Paolo.

Suhai Gyorgy Aug 22, 2006 - 1:32 AM

Hi!

If your dialog is derived from CExtResizableDialog, you don’t have to call InstallPaintManager method again for that dialog. The paintmanager is a global variable, so the same paintmanager will be used to paint your main window and your dialog. So if your dialog now is derived from CDialog, change it to CExtResizableDialog (as in many of the samples), and it will be painted correctly.

Chris.