Visual Studio .NET/Office XP Style
The following are examples of the styles of Visual Studio.NET/Office XP components that Objective Toolkit offers:
Figure 42 – Toolbar in Normal Mode
Figure 43 – Toolbar in Mouse Hover Mode
Figure 44 – Toolbar in Pressed Mode
Figure 45 – Toolbar in Checked Mode
Figure 46 – Menu bar in Normal Mode
Figure 47 – Menu bar in Mouse Hover Mode
Figure 48 – Menu bar with Open Submenu and Selected Item
Enabling .NET/Office XP Styles
To enable Visual Studio.NET style toolbars and menu bars, call theBOOL RWSetDotNetStyle(BOOL bEnable=true) function from your application. This function belongs to the global namespace and can be found in Includes\Toolkit\TMenuFrm.h. The suggested place to call this function is from the InitApplication method of your CWinApp-derived class. Note that this call must be made before the creation of the Mainframe.
To view sample code showing how to enable Visual Studio.NET/Office XP styles, see the CVizApp::InitInstance function implementation in VIZ.cpp, VIZ sample:
The VIZ sample demonstrates this feature, and can be found in the Samples\Toolkit\MFC\Docking directory.
NOTE >> To fully enable the .NET style, use the Stingray Studio toolbars and menu bars. You will also need to enable ‘Cool’ look for the toolbar. For more information on ‘Cool’ look, please see “The Customizable Toolbar Classes.”