A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
Hi,
My question is how add text message support in StatusBar.
I suggest you could try to add the text by SetPaneText(0, "Something").
You could refer to the Doc: https://learn.microsoft.com/en-us/cpp/mfc/reference/cstatusbar-class?view=msvc-160#setpanetext
I handle WM_SETMESSAGESTRING in DialogBar derived class but this message is not sent to it!
Whether you have captured the following message?
ON_MESSAGE(WM_SETMESSAGESTRING, OnSetMessageString)
LRESULT CMainFrame::OnSetMessageString(WPARAM wParam, LPARAM lParam)
{
if (wParam == AFX_IDS_IDLEMESSAGE)
{
m_wndStatusBar.SetPaneText(0,m_sStatusBarText);
return 0;
}
return CFrameWndEx::OnSetMessageString(wParam,lParam);
}
Best Regards,
Jeanine
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.