Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic


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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.