]>
git.saurik.com Git - wxWidgets.git/blob - src/os2/dcscreen.cpp
1 /////////////////////////////////////////////////////////////////////////////
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"
21 #include "wx/string.h"
22 #include "wx/window.h"
25 #include "wx/os2/private.h"
27 #include "wx/dcscreen.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(
45 // Skip wxWindowDC version because it doesn't work without a valid m_canvas
46 // (which we don't have)
48 wxDC::DoGetSize( pnWidth
51 } // end of wxScreenDC::DoGetSize