]>
git.saurik.com Git - wxWidgets.git/blob - src/os2/dcscreen.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/os2/dcscreen.cpp
3 // Purpose: wxScreenDC class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
20 #include "wx/dcscreen.h"
23 #include "wx/string.h"
24 #include "wx/window.h"
27 #include "wx/os2/private.h"
29 IMPLEMENT_DYNAMIC_CLASS(wxScreenDC
, wxWindowDC
)
31 // Create a DC representing the whole screen
32 wxScreenDC::wxScreenDC()
34 m_hDC
= ::WinOpenWindowDC(HWND_DESKTOP
);
35 m_hPS
= ::WinGetScreenPS(HWND_DESKTOP
);
36 ::GpiSetBackMix(m_hPS
, BM_LEAVEALONE
);
37 } // end of wxScreenDC::wxScreenDC()
39 void wxScreenDC::DoGetSize( int* pnWidth
,
43 // Skip wxWindowDC version because it doesn't work without a valid m_canvas
44 // (which we don't have)
46 wxDC::DoGetSize( pnWidth
, pnHeight
);
48 } // end of wxScreenDC::DoGetSize