Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Objective Toolkit User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

15.12 Full-Screen View

SECFullScreenView is a utility component that allows you to integrate full-screen display into your MDI/SDI based applications. SECFullScreenView is designed to be used as a stand-alone component. It hooks into your application and manages the full-screen activation without any need for subclassing your existing frame window classes.

This plug-in design makes it simple to add the full-screen capability to existing applications. All you need to do is add an SECFullScreenView member to your main frame class and invoke the SECFullScreenView::SetFSMode() API to trigger the full-screen display. Once this mode is set, SECFullScreenView steps into your application's activation mechanism and manages it until the user exits full-screen view mode, by pressing the ESCAPE key or clicking the full-screen toolbar.

The full-screen toolbar is a dynamically created toolbar that is instantiated as either an SECCustomToolBar or CToolBar/SECToolBar, depending on the run-time class of the frame. The SECCustomToolBar component provides the same cool-look full-screen user interface that is found in Microsoft VC++ and Microsoft Office. Both the standard bitmap toolbar and text toolbar are supported. The default toolbar offers certain pre-set styles. However, you can change the default styles with the help of an application-defined callback.

Figure 131: Default Full-screen Toolbar

Another feature of SECFullScreenView is the drop-down menu style that allows the temporary display of the application's main window menu when the cursor is placed over the top portion of the screen like the Windows Taskbar. The default behavior is to hide all docking windows (control bars) except in the case of docking views when in the application is in full-screen mode. However, SECFullScreenView allows you to selectively include control bars you want to display in full-screen mode.

15.12.1 The Full-Screen View Class

The SECFullScreenView class simply derives from CWnd.

Figure 132: Objective Toolkit Full-Screen View Class Hierarchy

15.12.2 SECFullScreenView Styles

The SECFullScreenView has a number of styles that control its behavior. These styles are used with the SetFSMode() method.

Style flag Description
SEC_FS_DROPDOWNMENU The application's main window menu is displayed when the cursor hovers over the top section of the screen. Moving the cursor hides the menu.
SEC_FS_TEXTTOOLBAR The full-screen toolbar is a text-only toolbar. The label can be set while invoking the full-screen mode.
SEC_FS_TASKBARHIDE Forcibly hides the Windows task bar when full-screen mode is triggered. Exiting full-screen mode retrieves the task bar. Default is false.
SEC_FS_NOCUSTTOOLBAR SECFullScreenView defaults to using SECCustomToolBar when the Objective Toolkit frame window classes are used. Setting this style creates the toolbar as an SECToolBar.

15.12.3 Using the SECFullScreenView Class

The following topics describe how to utilize the full-screen view in your applications.

15.12.3.1 To incorporate the SECFullScreenView class into your application

Add an SECFullScreenView member to your CFrameWnd-derived main frame class. From a command handler, call the SetFSMode() function with the required parameters. For example:

15.12.3.2 To set or retrieve the full-screen view mode styles

  1. Use the SECFullScreenView::SetFSStyle() and GetFSStyle() methods.

  2. SECFullScreenView::GetFSMode() returns a BOOL that specifies whether the full-screen mode is currently set.

15.12.3.3 To terminate full-screen view mode

Use the CloseFSMode() method to terminate the full-screen display.

15.12.3.4 To use full-screen view mode with docking windows

Use the SECFSBarState structure and the SetBarStateArray() method to specify the control bars to be displayed during full-screen view mode. The following excerpt from the SCREENVIEW sample demonstrates the usage:


SECFullScreenView only performs show/hide operations on the respective control bars. It is your responsibility to ensure that the control bars have been created and that they remain in scope throughout the time the application is in full-screen view mode.

15.12.3.5 To change the default full-screen view toolbar styles

The full-screen view toolbar class is instantiated dynamically based on the application's frame classes. So changing the default styles involves defining a callback function within your application and specifying this function pointer to the SECFullScreenView object. When the callback is invoked, you can examine the existing styles and change them as required.

Declare the callback.

Define the callback function.

Before invoking the full-screen view mode, call the SetFSToolBarStylesCB() method, providing the address of the callback function.

15.12.4 SECFullScreenView Sample

The Objective Toolkit sample screenview demonstrates usage of this class. This sample does not ship with the product. For information on how to obtain this sample, see Section 3.6.1, "Location of Sample Code," in the Stingray Studio Getting Started Guide.



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and Stingray, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.