Guides & Tutorials (beta)

Applying the Office 2007 Skin

by Mike Palmatier Visual C++ Created on 05/03/2008  |  Updated on 08/28/2024 0/5 ( 0 votes )

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.

The Office 2007 skin is located in the Office2007.cjstyles skin file and is loaded using the NormalOffice2007.ini file name.

// Loads the NormalOffice2007.ini skin
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());

Skin Controls

User Comments

No comments yet, sign in to comment.

Secure Transactions

Online transactions are secure and protected.


Ssl seal 1
This site is protected by Trustwave's Trusted Commerce program
CompliAssure Secured

Money Back Guarantee

If you are not 100% happy with your purchase within 30 days, you can return it for any reason. Your satisfaction is our priority!


Satisfication Guaranteed

Contact sales@codejock.com for more details.