Microsoft Office 2003 Style

The Office 2003 style feature allows your applications to take on a similar look and feel to the Microsoft Office 2003 suite of products. This visual style is theme-enabled, meaning that colors will change depending on the current Windows XP theme you have enabled. (Windows XP required.)

The following are examples of the styles of Microsoft Office 2003 components that Objective Toolkit offers:

Gradient-shaded and rounded toolbars with grippers

Hot toolbar buttons

Hot pressed toolbar buttons

Large toolbars

Vertically docked toolbars

Menus with grippers and hot menu buttons

Gradient-shaded menus with hot items

Checks with hot and hot pressed states

Expanded menus

Gradient-shaded control bar with grippers

Control bars with embedded controls

Themed shortcut bars

Gradient-shaded workbook/worksheet window tabs

Gradient-shaded 3D tab controls

Triple-nested tabs on bottom

Tabs on left with double-nested tabs on bottom

Tabs on top with double-nested tabs on bottom

Tabs on right with double-nested tabs on bottom

Themed status bars

Objective Toolkit’s Viz sample

Enabling Office 2003 Styles

To enable Microsoft Office 2003 styles, add RWSetOfc2003Style (TRUE); in your main application class’s InitInstance(). You must also include toolkit\ot_toolbar.h in your application’s stdafx.h file to pick up the classes involved with this look-and-feel style. Theme colors will automatically update when you change the system theme via the OnSysColorsChange() call. Do not use this look-and-feel style in conjunction with the .NET/XP style, described in Visual Studio .NET/Office XP Style You can either remove any previous RWSetDotNetStyle() or set it to FALSE.

For toolbars and menus to use this style, you must create Stingray toolbars and menus. Controls that you create should have their corresponding flat style and grippers enabled. Cool Look should also be enabled.

For classes derived from SECControlBar, if you have overridden OnEraseBkgnd(), you must return SECControlBar::OnEraseBkgnd(pDC); at the end of your routine in order to have the background draw themed.