Collapse the table of content
Expand the table of content



Calls the user-defined command that is associated with a view when the user double-clicks anywhere within that view.

virtual BOOL OnViewDoubleClick(
   CWnd* pWnd,
   int iViewId 

[in] pWnd

A pointer to an object derived from the CView Class.

[in] iViewId

The view ID.

True if the framework finds a command; otherwise false.

In order to support custom mouse behavior, you must call this function when you process the WM_LBUTTONDBLCLK message. This method will execute the command associated with the view ID supplied by iViewId. For more information about custom mouse behavior, see Keyboard and Mouse Customization.


Header: afxwinappex.h

© 2015 Microsoft