BCGSoft > Products > Product feature tour

Product feature tour

Context | First | Prev | Next | Last
Fully implemented BCGControlBar Pro (MFC)
Not available BCGSuite (MFC)
Not available BCGControlBar (Microsoft .NET)

Mouse event customization

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.

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);
}
Prev  Next