Comments below:
On 2 dic, 18:38, "aloha...@gmail.com" <aloha...@gmail.com> wrote:
Hi,
1. ok. I used the AfxGetMainWnd()->SendMessage(WM_SETSTATUS,0,pStr);
but I got:
error C2065: 'WM_SETSTATUS' : undeclared identifier
how to declare it ?
I think AliR. meant WM_SETMESSAGESTRING
2. One more thing is how can I SendMessage to disable certain menu in
main frame window ?
The standard way for enabling and disabling menu items is by handling
UPDATE_COMMAND_UI events. So in the ON_UPDATE_COMMAND_UI handler for
your specific item, you can enable or disable the item, based on
whatever condition you choose, like some variable state, or anything.
Many thank to your kind help.
Regards.
On Dec 3, 1:21 am, "AliR \(VC++ MVP\)" <A...@online.nospam> wrote:
There are several ways.
From you button handler you can either do this:
CMainFrame *pWnd = (CMainFrame *)AfxGetMainWnd();
ASSERT(pWnd);
pWnd->GetStatusBar().SetPaneText(0,"Test 123");
note that you need to write a method for GetStatusBar in your CMainFr=
works for the leftmost pane, the one with an ID of 0. Use a custom