次の方法で共有


CMFCToolBar::GetCustomizeButton

ツール バーに関連付けられた CMFCCustomizeButton オブジェクトへのポインターを取得します。

CMFCCustomizeButton* GetCustomizeButton();

戻り値

ツール バーに関連付けられた CMFCCustomizeButton オブジェクトへのポインター。

解説

このメソッドは、ツール バーの末尾に表示される [Customize] ボタンを取得します。 ツール バーに [Customize] ボタンを追加するには、CMFCToolBar::EnableCustomizeButton メソッドを使用します。

CMFCToolBar::IsExistCustomizeButton メソッドを呼び出して、ツール バーに有効な CMFCCustomizeButton オブジェクトが含まれているかどうかを判断できます。

必要条件

**ヘッダー:**afxtoolbar.h

参照

参照

CMFCToolBar クラス

階層図

CMFCCustomizeButton Class

CMFCToolBar::EnableCustomizeButton

CMFCToolBar::IsExistCustomizeButton