Toll Free: (877) 723-1442 U.S. and Canada
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
(877) 723-1442

International
(517) 625-5729

Email

Applying the Office 2007 Skin

Author: Mike Palmatier
Posted: May 3, 2006
Last Updated: December 10, 2007
Environment: Visual Basic 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.

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

    'Loads the NormalBlue.ini skin

    SkinFramework.LoadSkin App.Path + _

       "..\..\..\Styles\Office2007.cjstyles", "NormalBlue.ini"

To actually apply the skin, the ApplyWindow method must be called. ApplyWindow only needs to be called one time in the Load event of the window a skin will be applied. This tells the SkinFramework which window to apply skins to. The skin will be applied to all child windows as well.

    'Applies the currently loaded skin to the specified window

    'ApplyWindow tells the SkinFramework which window's appearance

    'to skin.  This can be called before or after a skin has been

    'loaded, but the skin will not be applied until ApplyWindow is

    'called.  Skins are loaded using the LoadSkin method.

    SkinFramework.ApplyWindow Me.hWnd

Here are the styles available.

Office2007.cjstyles:
-NORMALAQUA.INI
-NORMALBLUE.INI

Vista.cjstyles:
-NORMALBLACK.INI
-NORMALBLUE.INI
-NORMALSILVER.INI

WinXP.Luna.cjstyles:
-EXTRALARGEBLUE.INI
-EXTRALARGEHOMESTEAD.INI
-EXTRALARGEMETALLIC.INI
-LARGEBLUE.INI
-LARGEHOMESTEAD.INI
-LARGEMETALLIC.INI
-NORMALBLUE.INI
-NORMALHOMESTEAD.INI
-NORMALMETALLIC.INI

WinXP.Royale.cjstyles:
-EXTRALARGEFONTSROYALE.INI
-LARGEFONTSROYALE.INI
-NORMALROYALE.INI

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Other products and/or company names may be trademarks or registered trademarks of their respective owners.