]>
git.saurik.com Git - wxWidgets.git/blob - samples/multimon/multimon_test.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: multimon_test.cpp
3 // Purpose: tests wxDisplay class
4 // Author: Royce Mitchell III
8 // Copyright: (c) wxWindows team
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #define wxUSE_DISPLAY 1
14 #include <wx/display.h>
16 class TestApp
: public wxApp
22 IMPLEMENT_APP(TestApp
)
24 bool TestApp::OnInit()
26 size_t count
= wxDisplay::GetCount();
27 wxLogDebug ( "I detected %i display(s) on your system", count
);
31 wxDisplay
display ( i
);
32 wxRect r
= display
.GetGeometry();
33 wxLogDebug ( "Display #%i \"%s\" = ( %i, %i, %i, %i ) @ %i bits",
34 i
, display
.GetName().c_str(), r
.GetLeft(), r
.GetTop(), r
.GetWidth(), r
.GetHeight(),