就是下面这个:CBCGPRibbonStatusBar Class Members Data MembersPublic AddDynamicElement Adds temporary (dynamic) elements. AddElement Adds a new ribbon element to status bar control. AddExtendedElement Add a ribbon element to extend area of status bar control. AddSeparator Adds separator to status bar control. Create Creates status bar control. CreateEx Creates status bar control. FindElement Finds element by ID. GetCount Returns number of elements located on status bar control. GetElement Returns an element by its its index. GetExCount Returns number of elements located in extended area of status bar control. GetExElement Returns a pointer to element located at the specified index in the extended area of status bar control. IsInformationMode Tells whether the status bar works in "information" mode. RemoveAll Removes all elements from status bar control. RemoveElement Removes element from status bar control. SetInformation Sets status bar in "information" mode.
这些我都看了。没有设置大小的吧。我试试了好像可以自动调整大小,如果需要显示的字符多, the Statusbar can automatically adjust its size to fit the string length.
AddElement Adds a new ribbon element to status bar control.
AddExtendedElement Add a ribbon element to extend area of status bar control.
AddSeparator Adds separator to status bar control.
Create Creates status bar control.
CreateEx Creates status bar control.
FindElement Finds element by ID.
GetCount Returns number of elements located on status bar control.
GetElement Returns an element by its its index.
GetExCount Returns number of elements located in extended area of status bar control.
GetExElement Returns a pointer to element located at the specified index in the extended area of status bar control.
IsInformationMode Tells whether the status bar works in "information" mode.
RemoveAll Removes all elements from status bar control.
RemoveElement Removes element from status bar control.
SetInformation Sets status bar in "information" mode.
the Statusbar can automatically adjust its size to fit the string length.
CMFCRibbonStatusBarPane::SetAlmostLargeText(_T(""))