Mouse Event Customization

Fully implemented BCGControlBar Pro (MFC)

Not available BCGSuite (MFC)

Not available BCGControlBar for .NET

Full mouse customization enables the user to associate double-click events (for views only!) with the application commands. For example, you can define that "Undo" command should be executed when you double click the left mouse button over the specified view.

Use the "Mouse" customization page of the built-in customizing dialog.

Mouse Event Customization

Sample code:

BOOL CMyApp::InitInstance()
{
        ...
        InitMouseManager();
        ...
}
 
void CMyApp::PreLoadState ()
{
        GetMouseManager()->AddView (view_id, _T("My view"), icon_id); 
}
 
void CMyView::OnLButtonDblClk (UINT nFlags, CPoint point)
{
        theApp.OnViewDoubleClick (this, view_id);
}