BCGControlBar Pro for MFC

Detailed Description

The CBCGPWorkspace class provides the functionality of workspace manager. It handles the application/customization state, helps to save/load the state to/from the registry, contains initialization and access methods for the global managers such as CBCGPMouseManager, CBCGPContextMenuManager, CBCGPKeyboardManager, CBCGPUserToolsManager and CBCGPTearOffManager.

You can incorporate the CBCGPWorkspace functionality into your application by deriving the application class from it along with CWinApp, or by calling the CBCGPWorkspace::UseWorkspaceManager static member function.

+ Inheritance diagram for CBCGPWorkspace:

Public Member Functions

 CBCGPWorkspaceConstructs a CBCGPWorkspace object.
 
 CleanStateRemoves the workspace state from the Windows registry.
 
 CreateScreenshotCreates a given window screenshot.
 
 EnableLoadKeyboardAcceleratorsEnables or disables loading of keyboard accelerators along with other settings.
 
 EnableLoadWindowPlacementEnables or disables loading of main frame size and position along with other settings.
 
 EnableTaskBarInteractionEnables interaction with Windows 7-11 task bar.
 
 EnableTearOffMenusEnables using of tear-off menus in application.
 
 EnableUserToolsEnables user-defined plug-ins (user tools) in the application.
 
 GetBinaryRetrieves the binary data for a specified value field.
 
 GetContextMenuManagerGives the access to the global CBCGPContextMenuManager object.
 
 GetDataVersionMajorReturns the major version of the workspace state saved in the Windows registry.
 
 GetDataVersionMinorReturns the minor version of the workspace state saved in the Windows registry.
 
 GetDoubleRetrieves the double data for a specified value field.
 
 GetIntRetrieves the numeric data for a specified value field.
 
 GetKeyboardManagerGives the access to the global CBCGPKeyboardManager object
 
 GetMouseManagerGives the access to the global CBCGPMouseManager object.
 
 GetObjectRetrieves the CObject - derived object data for a specified value field.
 
 GetRegistryBaseGets a path to the registry key, which serves as a root for all subsequent registry calls.
 
 GetRegSectionPathConcatenates the relative path to a registry key with the application path.
 
 GetSectionBinaryRetrieves the binary data for a specified value field of a specified key.
 
 GetSectionDoubleRetrieves the numeric data for a specified value field of a specified key.
 
 GetSectionIntRetrieves the numeric data for a specified value field of a specified key.
 
 GetSectionObjectRetrieves the CObject - derived object data for a specified value field of a specified key.
 
 GetSectionStringRetrieves the string data for a specified value field of a specified key.
 
 GetShellManagerGives the access to the global CBCGPShellManager object.
 
 GetStringRetrieves the string data for a specified value field.
 
 GetTooltipManagerReturns a pointer to the tooltip manager.
 
 GetUserToolsManagerGives the access to the global CBCGPUserToolsManager object.
 
 InitContextMenuManagerInitializes the context menu manager.
 
 InitKeyboardManagerInitializes the keyboard manager.
 
 InitMouseManagerInitializes the mouse manager.
 
 InitShellManagerInitializes the shell manager
 
 InitTooltipManagerInitializes the tooltip manager.
 
 IsStateExistsDetermines whether the specified state does exist or not.
 
 IsTaskBarInteractionEnabledTells whether interaction with Windows 7-11 task bar is enabled or disabled.
 
 LoadStateLoads the application state from the Windows registry.
 
 LoadStateLoads the application state from the Windows registry.
 
 LoadStateLoads the application state from the Windows registry.
 
 LoadStateLoads the application state from the Windows registry.
 
 OnAppContextHelpCalled by the framework in customization mode to invoke context help.
 
 OnEditCtrlContextMenuCalled by the framework when edit control's context menu should be displayed.
 
 OnViewDoubleClickInvokes a user-defined command that has been associated with a double-click the left mouse button.
 
 SaveStateStores the framework's state into the Windows registry.
 
 SaveStateStores the framework's state into the Windows registry.
 
 SaveStateStores the framework's state into the Windows registry.
 
 SaveStateStores the framework's state into the Windows registry.
 
 SetRegistryBaseSets a path to the registry key that will serve as a root for all subsequent registry calls.
 
 ShowPopupMenuDisplays a popup menu.
 
 WriteBinaryStores binary data in a specified value field.
 
 WriteDoubleStores double data in a specified value field.
 
 WriteIntStores numeric data in a specified value field.
 
 WriteObjectStores CObject - derived object data in a specified value field.
 
 WriteSectionBinaryStores binary data in a specified value field of a specified key.
 
 WriteSectionDoubleStores numeric data in a specified value field of a specified key.
 
 WriteSectionIntStores numeric data in a specified value field of a specified key.
 
 WriteSectionObjectStores CObject - derived object data in a specified value field of a specified key.
 
 WriteSectionStringStores string data in a specified value field of a specified key.
 
 WriteStringStores string data in a specified value field.
 

Static Public Member Functions

 UseWorkspaceManagerEnables workspace manager for an application.
 

Public Attributes

 m_bIsAeroSnapPlacementIf this memebr is TRUE, the fraework saves the recent frame position and size in "AeroSnap" mode.
 
 m_nFileNewFrameCommandIDSpecifies the command ID associated with new frame creation (in the multiple top-level document interface applications, usually ID_FILE_NEW_FRAME).
 

Protected Member Functions

 LoadCustomStateCalled by the framework when the BCGControlBar Library-related application state has been loaded.
 
 LoadWindowPlacementCalled by the framework before a creation of the window attached to a CWnd object to load the window placement information from the registry.
 
 OnClosingMainFrameCalled by the framework when a main frame window is processing WM_CLOSE message.
 
 PreLoadStateCalled by the framework before the application state is loaded.
 
 PreSaveStateCalled by the framework before the application state is saved.
 
 ReloadWindowPlacementReloads window size and position from the registry
 
 SaveCustomStateCalled by the framework after everything is stored into the Windows registry.
 
 StoreWindowPlacementCalled by the framework to save the window placement information to registry when the window frame is being closed.
 

Protected Attributes

 m_bAutoSyncControlBarsStateBetweenFramesSpecifies whether the frame state should be automatically synchronized (in the multiple top-level document interface applications).
 
 m_bForceImageResetForce image reset every time when the frame is loaded