共用方式為


CToolBar::GetButtonStyle

呼叫此成員函式以取得的按鈕或分隔符號的樣式] 工具列上的 。

UINT GetButtonStyle( 
   int nIndex  
) const;

參數

  • nIndex
    要擷取的工具列按鈕或分隔符號樣式的索引。

傳回值

nIndex指定的按鈕或分隔符號的樣式。

備註

按鈕的樣式決定按鈕的外觀,以及它如何回應使用者輸入。 請參閱 SetButtonStyle 搭配按鈕樣式的範例。

需求

Header: afxext.h

請參閱

參考

CToolBar 類別

階層架構圖表

CToolBar::SetButtonStyle