]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/display/display.cpp
Removal of first part of dsw files (as requested by Jamie Gadd).
[wxWidgets.git] / samples / display / display.cpp
index ff358cd01a6baf85a4d6e5965812f71ceb3d9dda..7ee089971d09884481c85f981437e7910e74bcc0 100644 (file)
@@ -260,6 +260,15 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size,
                                          r.width, r.height)
                        ));
 
+        const wxRect rc(display.GetClientArea());
+        sizer->Add(new wxStaticText(page, wxID_ANY, _T("Client area: ")));
+        sizer->Add(new wxStaticText
+                       (
+                        page,
+                        wxID_ANY,
+                        wxString::Format(_T("(%d, %d)-(%d, %d)"),
+                                         rc.x, rc.y, rc.width, rc.height)
+                       ));
 
         sizer->Add(new wxStaticText(page, wxID_ANY, _T("Name: ")));
         sizer->Add(new wxStaticText(page, wxID_ANY, display.GetName()));