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:
Code:
...
DECLARE_MESSAGE_MAP()
public:

	afx_msg void OnStart();
};
MainFrm.cpp:
Code:
...
ON_COMMAND(ID_START, &CMainFrame::OnStart)
...
void CMainFrame::OnStart()
{
	m_dlgbar.m_list.AddString("Simulation started..");
}
And it doesn't works.

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!