Professional UI Solutions
Site Map   /  Register


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 » Changing Themes in Doc/View VC++ 6.0 MFC App Collapse All
Subject Author Date
Phil Cheetham Jun 8, 2007 - 12:41 PM

I simply want to change the title bar and boarder etc. to silver or black or blue without having to change the system wide Theme.
I added

to the CMainFrame::OnCreate function

    g_PaintManager->PaintDocumentClientAreaBkgnd( *pDC, this );
to the CSkill3DView::OnDraw function

but it still comes up with the old Windows XP blue titlebar (i.e. nothing visible seems to happen

What else do I have to do? Is there more documentation somewhere. I currently only have the shareware version.


Technical Support Jun 11, 2007 - 3:44 AM

If your application is SDI, please use CExtNCW < CFrameWnd > as the base for CMainFrame instead of the CFrameWnd class type defined in MFC and, if it is MDI, use CExtNCW < CMDIFrameWnd > instead of CMDIFrameWnd.
The CExtNCW template class provides popup windows with a themed non-client area. It can also be used with the CExtResizableDialog class in dialog-based applications. In Prof-UIS samples, you can find examples of how to use CExtNCW.