Just one more doubt.
Now I have the DialogBar working. It has two ListBoxes.
The DialogBar is defined and created in MainFrame, and I want to add strings to listboxes in the dialogbar when a button is pressed in the default toolbar.
So I caught the event in the button and..
MainFrm.h:
MainFrm.cpp:Code:... DECLARE_MESSAGE_MAP() public: afx_msg void OnStart(); };
And it doesn't works.Code:... ON_COMMAND(ID_START, &CMainFrame::OnStart) ... void CMainFrame::OnStart() { m_dlgbar.m_list.AddString("Simulation started.."); }
However, if I try to add some text to the listbox in the OnCreate function of the DialogBar, the text is added without any problem..
Thanks!




Reply With Quote
