I'm not so good in OOP rules in C++. I have this Application OnInit() callback:
bool Application::OnInit()
{
MainFrame *mainFrame = new MainFrame();
mainFrame->Show();
SetTopWindow(mainFrame);
return true;
}
In MainFrame, derived from wxFrame I have private member and getter for it:
wxDialog* MainFrame::GetConfigDialog()
{
return m_ConfigDialog;
}
I want to get ConfigDialog in other class, so I call
wxTheApp->GetTopWindow()->GetConfigDialog()
But it complain about wxWindow has no member named GetConfigDialog(). Can i get my MainFrame from wxTheApp somehow?