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

wudeshou82666 2009-12-02 05:10:43
怎么改变CStatusBar的第一个PANE的提示信息???
...全文
118 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
wwgddx 2009-12-03
  • 打赏
  • 举报
回复
用m_wndStatusBar.SetPaneText(0,"aaa");
可以改变,但很快会被系统的替换掉,系统会自动显示准备就绪,这个可以在资源文件里修改
还会默认显示其他控件的提示信息,
huangkaigoodup 2009-12-02
  • 打赏
  • 举报
回复
m_wndStatusBar.SetPaneText(0,"aaa");
huangkaigoodup 2009-12-02
  • 打赏
  • 举报
回复
在CFrameMain类的OnCreat函数中调用SetPaneText()函数就行了
具体如下:
SetPaneText(0,"aaa");就行了
fandh 2009-12-02
  • 打赏
  • 举报
回复
在资源的字符串里面,ID_INDICATOR_CAPS对应的是cap你自己改!
fandh 2009-12-02
  • 打赏
  • 举报
回复
在资源的字符串里面改!
onlyliu 2009-12-02
  • 打赏
  • 举报
回复
楼主,建议你看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.


Overridables

DrawItem Called when a visual aspect of an owner-draw status bar control changes.

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧