Remove calls to wxApp::SetTopWindow() from the samples and documentation.

It is definitely not necessary to call SetTopWindow() when there is only a
single top level window and it is arguable whether it's useful to do it even
when there are many of them so don't encourage its use in the documentation
and also remove all its occurrences from the samples.

Closes #12816.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-01-02 22:05:14 +00:00
parent 30d6c59b29
commit 18f42b94df
41 changed files with 18 additions and 81 deletions

View File

@@ -47,7 +47,6 @@ bool MyApp::OnInit()
// Create the main window
MyFrame *frame = new MyFrame();
SetTopWindow(frame);
// Problem with generic wxNotebook implementation whereby it doesn't size
// properly unless you set the size again