BCGControlBar Pro for MFC
CBCGPMouseManager

Detailed Description

The CBCGPMouseManager class provides the functionality that allows a user to associate the available menu command with double click mouse event.

The CBCGPMouseManager object is a global object that is created during BCGControlBar Library initialization and destroyed on application exit. It maintains a collection of view IDs mapped by a view name. When the user wants to define a new command to be executed upon double click on some particular view, this view is added to the collection.

To allow the command to be executed upon double click on the view window client area, you have to process WM_LBUTTONDBLCLK message at the view level, call the CBCGPWorkspace::OnViewDoubleClick member function and register the view by calling the AddView() member function.

See also
CBCGPWorkspace

Inherits CObject.

Public Member Functions

 AddViewEnables a view object for the mouse double-click customization.
 
 AddViewEnables a view object for the mouse double-click customization.
 
 GetViewDblClickCommandGiven a view ID returns a command (if any) to be executed upon double-click.
 
 GetViewIconIdGiven a view ID returns the view's icon resource ID.
 
 GetViewIdByNameGiven a view name returns the view ID.
 
 GetViewNamesRetrieves a list of registered view names.
 
 LoadStateLoads the manager state from the Windows registry.
 
 SaveStateStores the manager state into the Windows registry
 
 SetCommandForDblClickAssociates a view with a command.