X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/22d679f369eeedd8f5f6781ea6a476f5b48c4d6c..a97d569cbbf90ba8bb293214055c3a8c19d447b5:/samples/display/display.cpp diff --git a/samples/display/display.cpp b/samples/display/display.cpp index ff358cd01a..7ee089971d 100644 --- a/samples/display/display.cpp +++ b/samples/display/display.cpp @@ -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()));