次の方法で共有


CComControlBase::DoVerbProperties

更新 : 2007 年 11 月

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

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)

必要条件

ヘッダー : atlctl.h

参照

参照

CComControlBase クラス

IOleObjectImpl::DoVerbPrimary

その他の技術情報

CComControlBase のメンバ