]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/controls/controls.cpp
MIME type manager fixes described earlier on the list:
[wxWidgets.git] / samples / controls / controls.cpp
index 5f623ff4cc5ce27e1ba8d3874fbbfe91d7beb789..b34e832b304289f268ec2822f1fad66e22a0bfe2 100644 (file)
@@ -175,8 +175,11 @@ private:
     void UpdateStatusBar(const wxPoint& pos, const wxSize& size)
     {
         wxString msg;
-        msg.Printf(_("pos=(%d, %d), size=%dx%d"),
-                   pos.x, pos.y, size.x, size.y);
+        wxSize sizeCl = GetClientSize();
+        msg.Printf(_("pos=(%d, %d), size=%dx%d (client=%dx%d)"),
+                   pos.x, pos.y,
+                   size.x, size.y,
+                   sizeCl.x, sizeCl.y);
         SetStatusText(msg, 1);
     }
 
@@ -308,7 +311,7 @@ bool MyApp::OnInit()
     // parse the cmd line
     int x = 50,
         y = 50;
-    if ( argc == 2 )
+    if ( argc == 3 )
     {
         wxSscanf(argv[1], "%d", &x);
         wxSscanf(argv[2], "%d", &y);