![]() |
CXTPStatusBarPane |
Post Reply ![]() |
Author | |
yyh7011cn ![]() Groupie ![]() Joined: 10 September 2006 Location: China Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() Posted: 07 December 2008 at 5:21pm |
Help me, I want to change the statusBarPane's text dynamicly, So I write the following code:
CXTPStatusBarPane* pPane = m_wndStatusBar.FindPane(ID_YYHINFO);
CString buf; but the statusbar only display the last text,why? a MFC program with not using toolkitpro can work, tell me how to do?
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
You just need
CXTPStatusBarPane* pPane = m_wndStatusBar.FindPane(ID_YYHINFO);
pPane->SetText("New Text");
check that pPane is pane you need. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
yyh7011cn ![]() Groupie ![]() Joined: 10 September 2006 Location: China Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() |
thanks,I want to do the following things:
CXTPStatusBarPane* pPane = m_wndStatusBar.FindPane(ID_YYHINFO);
pPane->SetSext("Started");
for( int i = 0; i < 1000000;i++)
{
//do something
}
pPane->SetText("Finished");
but the statusbar doesnot display "Started", It can display "Finished" until the loop is end. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Add m_wndStatusBar.UpdateWindow(); after change text.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
yyh7011cn ![]() Groupie ![]() Joined: 10 September 2006 Location: China Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() |
Thanks,It can work.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |