怎么改变CStatusBar的第一个PANE的提示信息???

解决方案 »

  1.   

    楼主,建议你看MSDN。 ..CStatusBar Class Members
    CStatusBar Constructs a CStatusBar object. 
    Create Creates the status bar, attaches it to the CStatusBar object, and sets the initial font and bar height. 
    CreateEx Creates a CStatusBar object with additional styles for the embedded CStatusBarCtrl object. 
    SetIndicators Sets indicator IDs. 
    Attributes CommandToIndex  Gets index for a given indicator ID. 
    GetItemID  Gets indicator ID for a given index. 
    GetItemRect  Gets display rectangle for a given index. 
    GetPaneInfo  Gets indicator ID, style, and width for a given index. 
    GetPaneStyle  Gets indicator style for a given index. 
    GetPaneText  Gets indicator text for a given index. 
    GetStatusBarCtrl  Allows direct access to the underlying common control. 
    SetPaneStyle  Sets indicator style for a given index. 
    SetPaneText  Sets indicator text for a given index. 
    SetPaneInfo  Sets indicator ID, style, and width for a given index. 
    OverridablesDrawItem Called when a visual aspect of an owner-draw status bar control changes. 
      

  2.   

    在资源的字符串里面,ID_INDICATOR_CAPS对应的是cap你自己改!
      

  3.   

    在CFrameMain类的OnCreat函数中调用SetPaneText()函数就行了
    具体如下:
    SetPaneText(0,"aaa");就行了
      

  4.   

    用m_wndStatusBar.SetPaneText(0,"aaa");
    可以改变,但很快会被系统的替换掉,系统会自动显示准备就绪,这个可以在资源文件里修改
    还会默认显示其他控件的提示信息,