No real changes, just rename a method to avoid confusion with
wxPreferencesPage::CreateWindow().
Also return the concrete type of the dialog, not a base wxDialog, as it will
be useful for future changes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74004
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
protected:
- virtual wxDialog *CreateWindow(wxWindow *parent)
+ wxGenericPrefsDialog *CreateDialog(wxWindow *parent)
{
wxGenericPrefsDialog *dlg = new wxGenericPrefsDialog(parent);
{
if ( !m_win )
{
- wxWindow *win = CreateWindow(parent);
+ wxWindow *win = CreateDialog(parent);
win->Show();
m_win = win;
}
public:
virtual void Show(wxWindow* parent)
{
- wxScopedPtr<wxDialog> dlg(CreateWindow(parent));
+ wxScopedPtr<wxGenericPrefsDialog> dlg(CreateDialog(parent));
dlg->Fit();
dlg->ShowModal();
}