diff --git a/docs/latex/wx/app.tex b/docs/latex/wx/app.tex index 2add770cd4..ec2ac10d7f 100644 --- a/docs/latex/wx/app.tex +++ b/docs/latex/wx/app.tex @@ -134,7 +134,7 @@ otherwise. \membersection{wxApp::GetTopWindow}\label{wxappgettopwindow} -\constfunc{wxWindow *}{GetTopWindow}{\void} +\constfunc{virtual wxWindow *}{GetTopWindow}{\void} Returns a pointer to the top window. diff --git a/include/wx/app.h b/include/wx/app.h index 6f4ddd3265..d1825f18a6 100644 --- a/include/wx/app.h +++ b/include/wx/app.h @@ -171,7 +171,7 @@ public: // return the "main" top level window (if it hadn't been set previously // with SetTopWindow(), will return just some top level window and, if // there are none, will return NULL) - wxWindow *GetTopWindow() const + virtual wxWindow *GetTopWindow() const { if (m_topWindow) return m_topWindow;