|
Support
ActiveX / COM
Visual C++ / MFC
Customer Spotlight
Corporate Partners
Contact Sales
Call center available M-F 9:00 - 6:00 US Eastern Time. U.S. and Canada International Email |
Applying the Office 2007 Skin
Author: Mike Palmatier
Posted: May 3, 2006
Environment: Visual C++ 6.0
First a skin must be loaded before it can be applied to your application. The LoadSkin method
loads a skin from a .cjstyles or .msstyles file.
'Loads the NormalOffice2007.ini skin SkinFramework.LoadSkin App.Path + _ XTPSkinManager()->LoadSkin(_T("..\..\..\Styles\WinXP.Luna.cjstyles"), _T("NormalBlue.ini")); By default, the skin framework will automatically skin all child windows of your application. If you do not want this to happen you can call the SetAutoApplyNewWindows method to specify that all windows will not automatically receive the skin. You can then individually specify which windows will receive the skin by using the ApplyWindow method.
XTPSkinManager()->SetAutoApplyNewWindows(FALSE); XTPSkinManager()->ApplyWindow(pWnd->GetSafeHwnd());
|
