共用方式為


CMFCToolBarButton::GetProtectedCommands

擷取使用者無法自訂命令的清單。

static const CList<UINT,UINT>& GetProtectedCommands();

傳回值

受保護的命令清單。

備註

在自訂模式,架構會停用受保護的工具列按鈕命令。 使用者無法執行拖放和編輯作業會停用 工具列按鈕。

使用 CMFCToolBarButton::SetProtectedCommands 方法定義受保護的命令清單。

需求

標題: afxtoolbarbutton.h

請參閱

參考

CMFCToolBarButton 類別

階層架構圖表

CMFCToolBarButton::SetProtectedCommands