BCGControlBar Pro for MFC
BOOL CBCGPMouseManager::AddView ( int  iViewId,
UINT  uiViewNameResId,
UINT  uiIconId = 0 
)

Enables a view object for the mouse double-click customization.

Returns
Nonzero if the object was registered successfully; otherwise 0.

Call this function to enable the CBCGPMouseManager object to display the list of views in the customization dialog. The user can select a view from the list and associate it with a command to be executed upon a mouse double-click event received by the view.

The CBCGPMouseManager provides the customization dialog with the view name and the view icon to display it in the list box.

Parameters
iViewIdA view ID.
uiViewNameResIdA view name resource string ID.
uiIconIdA view icon ID.