|
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
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.
'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. |
