]> git.saurik.com Git - wxWidgets.git/commitdiff
Use SetSizeHints() for wxTLW.
authorRobert Roebling <robert@roebling.de>
Sun, 29 Oct 2006 19:26:54 +0000 (19:26 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 29 Oct 2006 19:26:54 +0000 (19:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/minifram/minifram.cpp

index e63bf430e0e3166ae0fc85b1897598e41df2c0fc..9964b07b33d4e06c47bd9230377a9125863f934d 100644 (file)
@@ -61,9 +61,6 @@ bool MyApp::OnInit()
   main_frame = new MyMainFrame((wxFrame *) NULL, wxID_ANY, _T("wxFrame sample"),
      wxPoint(100, 100), wxSize(300, 200));
 
-  // main_frame->SetMinSize( wxSize(100,100) );
-  // main_frame->SetMaxSize( wxSize(400,400) );
-  // same as
   main_frame->SetSizeHints( 100,100, 400,400 );
 
   wxMenu *file_menu = new wxMenu;
@@ -238,10 +235,10 @@ void MyMainFrame::OnSetSize_200_200(wxCommandEvent& WXUNUSED(event))
 
 void MyMainFrame::OnSetMaxSize_150_150(wxCommandEvent& WXUNUSED(event))
 {
-    SetMaxSize( wxSize(150,150) );
+    SetSizeHints( -1, -1, 150, 150 );
 }
 
 void MyMainFrame::OnSetMaxSize_300_300(wxCommandEvent& WXUNUSED(event))
 {
-    SetMaxSize( wxSize(300,300) );
+    SetSizeHints( -1, -1, 300, 300 );
 }