The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.



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