CMFCRibbonStatusBar这个状态栏怎么设置他的每个窗格的大小?
有知道的没?谢谢!!

解决方案 »

  1.   

    翻翻MSDN吧,如果本地的没有,在用在线的
      

  2.   

    MSDN我都查看了,就是没找到合适的函数,不知道大家怎么做的。
      

  3.   

    就是下面这个: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. 
      

  4.   

    这些我都看了。没有设置大小的吧。我试试了好像可以自动调整大小,如果需要显示的字符多,
    the Statusbar can automatically adjust its size to fit the string length.
      

  5.   

    Ribbon的资料好少,都需要自己摸索
      

  6.   

    这个工具条里有内嵌的函数,可以设定窗体大小。
    CMFCRibbonStatusBarPane::SetAlmostLargeText(_T(""))