]>
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
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // For compilers that support precompilation, includes "wx.h".
12 #include "wx/wxprec.h"
14 #include "wx/os2/dcscreen.h"
17 #include "wx/string.h"
18 #include "wx/window.h"
21 #include "wx/os2/private.h"
23 IMPLEMENT_ABSTRACT_CLASS(wxScreenDCImpl
, wxPMDCImpl
)
25 // Create a DC representing the whole screen
26 wxScreenDCImpl::wxScreenDCImpl( wxScreenDC
*owner
) :
29 m_hDC
= ::WinOpenWindowDC(HWND_DESKTOP
);
30 m_hPS
= ::WinGetScreenPS(HWND_DESKTOP
);
31 ::GpiSetBackMix(m_hPS
, BM_LEAVEALONE
);
32 } // end of wxScreenDC::wxScreenDC()
34 void wxScreenDCImpl::DoGetSize( int* pnWidth
,
38 // Skip wxWindowDC version because it doesn't work without a valid m_canvas
39 // (which we don't have)
41 wxPMDCImpl::DoGetSize( pnWidth
, pnHeight
);
43 } // end of wxScreenDC::DoGetSize