how to get the parent wxFrame pointer in subdialog
I make a program to realize some function. I have an wxFrame, wxMenubar,wxScrolledWindow,wxListBox. By click some menu of the menubar, i create several dlgs for information input, maybe have several levels(after dlg create, also create sub dlgs) i want to manipulate the wxFrame's wxScrolledWindow's display content in the dliaogue . My qustion is: how to get the wxFrame pointer in the dlg. typically the dlg my create is like this,
class Qgis2wxDbSourceSelectDlg : public wxDialog
Qgis2wxDbSourceSelectDlg( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Add PostGIS Table(s)"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 269,286 ), long style = wxDEFAULT_DIALOG_STYLE );
I want to have the wxFrame pointer in the Qgis2wxDbSourceSelectDlg, how should i do?
Should I make the Qgis2wxDbSourceSelectDlg also inheritated from wxFrame? and how to transfer to wxFrame pointer to the Qgis2wxDbSourceSelectDlg?