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

Disabling Luna Colors When using the Office 2003 Theme

Author: Mike Palmatier
Posted: January 31, 2006
Environment: Visual Basic 6.0

By default, when the Office 2003 theme is used the Luna Colors for the currently set system theme will be used to color the Commandbars. Luna colors are the Blue, Silver, and Olive themes used in Windows XP. If you application is running on Windows XP and using the Office 2003 theme, then it will use one of the Luna themes if they are currently set. To disable this, the LunaColors property must be set to False. When disabled, the commandbars will be drawn in shades of gray as shown in the lower right window.



The code below disable Luna Colors as in the window on the left in the picture above.

 

     CommandBars.Options.LunaColors = False

 

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.