共用方式為


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 類別

IOleObjectImpl::DoVerbPrimary