次の方法で共有


CMFCToolBarEditBoxButton::GetByCmd

指定したコマンド ID を持つ最初の CMFCToolBarEditBoxButton オブジェクトをアプリケーションから取得します。

static CMFCToolBarEditBoxButton* __stdcall GetByCmd(
   UINT uiCmd
);

パラメーター

  • [入力] uiCmd
    取得するボタンのコマンド ID。

戻り値

アプリケーション内で、指定したコマンド ID を持つ最初の CMFCToolBarEditBoxButton オブジェクト。該当するオブジェクトが存在しない場合は NULL。

解説

この共有ユーティリティ メソッドは、CMFCToolBarEditBoxButton::SetContentsAll および CMFCToolBarEditBoxButton::GetContentsAll などのメソッドによって使用され、指定したコマンド ID を持つ最初のエディット ボックス ツール バー コントロールのテキストを設定または取得します。

必要条件

ヘッダー : afxtoolbareditboxbutton.h

参照

関連項目

CMFCToolBarEditBoxButton クラス

階層図

CMFCToolBarEditBoxButton::SetContentsAll

CMFCToolBarEditBoxButton::GetContentsAll