Re: How do I get rid of "Ready" in Status Bar
Quote:
Originally Posted by
rudibr
...
So my implementation is a kind of delayed mechanism. Would WM_SETMESSAGESTRING also be able to handle this? Will the message stay in the queue untill the statusbar is created?
Just test it!
Re: How do I get rid of "Ready" in Status Bar
Quote:
Originally Posted by
VictorN
Just test it!
Ok. I’ll try that. Just thought that since You suggested it you might know something about it.
Re: How do I get rid of "Ready" in Status Bar
Quote:
Originally Posted by
VictorN
Just test it!
I tried this:
Code:
CHAR* msg = "This is a test";
AfxGetApp()->m_pMainWnd->SendMessage(WM_SETMESSAGESTRING, 0, (LPARAM)msg);
This doesn't set the status text, if called before the status bar is created, but works fine afterwards.
So I'll stick with my timer solution that actually works.
Why did you suggest using WM_SETMESSAGESTRING? Just guessing?
Re: How do I get rid of "Ready" in Status Bar
Quote:
Originally Posted by
rudibr
I tried this:
Code:
CHAR* msg = "This is a test";
AfxGetApp()->m_pMainWnd->SendMessage(WM_SETMESSAGESTRING, 0, (LPARAM)msg);
This doesn't set the status text, if called before the status bar is created, but works fine afterwards.
I never needed to set the status bar text before status bar has been created.
Quote:
Originally Posted by
rudibr
So I'll stick with my timer solution that actually works.
Yes! If it is already developed/created and does work, then why not? ;)
Quote:
Originally Posted by
rudibr
Why did you suggest using WM_SETMESSAGESTRING? Just guessing?
Because it worked for me since decades without any problem! :)
Re: How do I get rid of "Ready" in Status Bar
;-)
If it works, don’t fix it!
🤪
Re: How do I get rid of "Ready" in Status Bar
Quote:
Originally Posted by
rudibr
;-)
If it works, don’t fix it!
🤪
:thumb::thumb::thumb: