-
October 26th, 2021, 07:21 AM
#16
Re: How do I get rid of "Ready" in Status Bar
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!
Victor Nijegorodov
-
October 26th, 2021, 07:40 AM
#17
Re: How do I get rid of "Ready" in Status Bar
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.
-
October 26th, 2021, 08:17 AM
#18
Re: How do I get rid of "Ready" in Status Bar
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?
-
October 26th, 2021, 09:31 AM
#19
Re: How do I get rid of "Ready" in Status Bar
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.
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?
Originally Posted by rudibr
Why did you suggest using WM_SETMESSAGESTRING? Just guessing?
Because it worked for me since decades without any problem!
Victor Nijegorodov
-
October 26th, 2021, 09:45 AM
#20
Re: How do I get rid of "Ready" in Status Bar
;-)
If it works, don’t fix it!
🤪
-
October 26th, 2021, 10:05 AM
#21
Re: How do I get rid of "Ready" in Status Bar
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|