次の方法で共有


CComControlBase::DoVerbProperties

コントロールのプロパティ ページを表示します。

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

パラメーター

  • prcPosRec
    予約されています。

  • hwndParent
    コントロールを含むウィンドウのハンドル。

戻り値

標準の HRESULT 値のいずれか 1 つが。

使用例

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

必要条件

ヘッダー : atlctl.h

参照

関連項目

CComControlBase クラス

IOleObjectImpl::DoVerbPrimary