CComControlBase::DoVerbProperties

显示控件的属性页。

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

参数

  • prcPosRec
    保留。

  • hwndParent
    包含控件的窗口句柄。

返回值

一个标准HRESULT值。

示例

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

要求

Header: atlctl.h

请参见

参考

CComControlBase Class

IOleObjectImpl::DoVerbPrimary