// 'Main program' equivalent: the program execution "starts" here
bool MyApp::OnInit()
{
+ if ( !wxApp::OnInit() )
+ return false;
+
#ifdef __WXMSW__
if ( argc == 2 && !wxStricmp(argv[1], _T("/dx")) )
{
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()));