Condividi tramite


CWinAppEx::OnViewDoubleClick

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 
);

Parameters

  • [in] pWnd
    A pointer to an object derived from the CView Class.

  • [in] iViewId
    The view ID.

Return Value

True if the framework finds a command; otherwise false.

Remarks

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.

Requirements

Header: afxwinappex.h

See Also

Reference

CWinAppEx Class

Hierarchy Chart

Concepts

Keyboard and Mouse Customization