Partager via


IOleObjectImpl::DoVerbPrimary

Defines the action taken when the user double-clicks the control.

HRESULT DoVerbPrimary(
   LPCRECT prcPosRect,
   HWND hwndParent 
);

Parameters

  • prcPosRec
    [in] Pointer to the rectangle the container wants the control to draw into.

  • hwndParent
    [in] Handle of the window containing the control.

Return Value

One of the standard HRESULT values.

Remarks

By default, set to display the property pages. You can override this in your control class to invoke a different behavior on double-click; for example, play a video or go in-place active.

Requirements

Header: atlctl.h

See Also

Concepts

IOleObjectImpl Class

IOleObjectImpl Members

CComControlBase::DoVerbProperties