CComControlBase::DoVerbProperties

 

Displays the control's property pages.

Syntax

      HRESULT DoVerbProperties(
   LPCRECT /* prcPosRect */,
   HWND hwndParent 
);

Parameters

  • prcPosRec
    Reserved.

  • hwndParent
    Handle of the window containing the control.

Return Value

One of the standard HRESULT values.

Example

// The following implementation of the WM_RBUTTONDOWN message handler
// will pop up the ActiveX Control's PropertyPages 
LRESULT CMyComposite::OnRButtonDown(UINT /*uMsg*/, WPARAM /*wParam*/, 
   LPARAM /*lParam*/, BOOL& /*bHandled*/)
{
   DoVerbProperties(NULL, ::GetActiveWindow());
   return 0L;
}
MESSAGE_HANDLER(WM_RBUTTONDOWN, OnRButtonDown)

Requirements

Header: atlctl.h

See Also

CComControlBase Class
IOleObjectImpl::DoVerbPrimary