use a default position for frames and in some cases a default size as well (otherwise the menubar is partially hidden (with MSW) due to too small frame height)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Dimitri Schoolwerth
2004-07-05 19:27:23 +00:00
parent 04e539f5d1
commit 16f26dadb5
6 changed files with 6 additions and 6 deletions

View File

@@ -109,7 +109,7 @@
wxImage::AddHandler(new wxPNGHandler);
// Create the main application window
MyFrame *frame = new MyFrame(_("wxHtmlWindow testing application"),
wxPoint(50, 50), wxSize(150, 50));
wxDefaultPosition, wxDefaultSize);
// Show it and tell the application that it's our main window
// @@@ what does it do exactly, in fact? is it necessary here?

View File

@@ -116,7 +116,7 @@
// Create the main application window
MyFrame *frame = new MyFrame(_("HTML Help Sample"),
wxPoint(50, 50), wxSize(150, 50));
wxDefaultPosition, wxDefaultSize);
// Show it and tell the application that it's our main window
// @@@ what does it do exactly, in fact? is it necessary here?

View File

@@ -140,7 +140,7 @@ bool MyApp::OnInit()
#endif
MyFrame *frame = new MyFrame(_("Printing test"),
wxPoint(150, 50), wxSize(640, 480));
wxDefaultPosition, wxSize(640, 480));
// Show it and tell the application that it's our main window
// @@@ what does it do exactly, in fact? is it necessary here?

View File

@@ -162,7 +162,7 @@ wxFSFile* MyVFS::OpenFile(wxFileSystem& WXUNUSED(fs), const wxString& location)
{
// Create the main application window
MyFrame *frame = new MyFrame(_("wxHtmlWindow testing application"),
wxPoint(50, 50), wxSize(640, 480));
wxDefaultPosition, wxSize(640, 480));
// Show it and tell the application that it's our main window
// @@@ what does it do exactly, in fact? is it necessary here?

View File

@@ -154,7 +154,7 @@ bool MyApp::OnInit()
{
// Create the main application window
MyFrame *frame = new MyFrame( _("wxHtmlWindow testing application"),
wxPoint(50, 50), wxSize(640, 480) );
wxDefaultPosition, wxSize(640, 480) );
// Show it and tell the application that it's our main window
// @@@ what does it do exactly, in fact? is it necessary here?

View File

@@ -113,7 +113,7 @@ bool MyApp::OnInit()
// Create the main application window
MyFrame *frame = new MyFrame(_("wxHtmlWindow testing application"),
wxPoint(50, 50), wxSize(640, 480) );
wxDefaultPosition, wxSize(640, 480) );
// Show it and tell the application that it's our main window
// @@@ what does it do exactly, in fact? is it necessary here?