]>
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/os2/dcscreen.h"
23 #include "wx/string.h"
24 #include "wx/window.h"
27 #include "wx/os2/private.h"
29 IMPLEMENT_ABSTRACT_CLASS(wxScreenDCImpl
, wxPMDCImpl
)
31 // Create a DC representing the whole screen
32 wxScreenDCImpl::wxScreenDCImpl( wxScreenDC
*owner
) :
35 m_hDC
= ::WinOpenWindowDC(HWND_DESKTOP
);
36 m_hPS
= ::WinGetScreenPS(HWND_DESKTOP
);
37 ::GpiSetBackMix(m_hPS
, BM_LEAVEALONE
);
38 } // end of wxScreenDC::wxScreenDC()
40 void wxScreenDCImpl::DoGetSize( int* pnWidth
,
44 // Skip wxWindowDC version because it doesn't work without a valid m_canvas
45 // (which we don't have)
47 wxPMDCImpl::DoGetSize( pnWidth
, pnHeight
);
49 } // end of wxScreenDC::DoGetSize