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 » Problem With Themes Collapse All
Subject Author Date
Sadjad Fouladi Jun 6, 2006 - 4:02 AM

Hello.
When I apply Office 2007 LunaBlue theme with this code:

VERIFY(
    g_PaintManager.InstallPaintManager(
        RUNTIME_CLASS(CExtPaintManagerOffice2007_R2_LunaBlue)
        )
        );

It doesn’t change the Window Title bar.
Is there any bugs?

Technical Support Jun 6, 2006 - 11:37 AM

Just apply the CExtNCW template class to the declaration of your main frame or your main dialog window. Here are how the main MDI, SDI or dialog classes are typically declared:

class CMainFrame : public CMDIFrameWnd
class CMainFrame : public CFrameWnd
class CYourDialog : public CExtResizableDialog
If you want to see themed window caption and borders, you should use the following declarations:
class CMainFrame : public CExtNCW < CMDIFrameWnd >
class CMainFrame : public CExtNCW < CFrameWnd >
class CYourDialog : public CExtNCW < CExtResizableDialog >