]> git.saurik.com Git - wxWidgets.git/blob - src/os2/dcscreen.cpp
Define __VISUALC__ for ICC under Windows again.
[wxWidgets.git] / src / os2 / dcscreen.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/os2/dcscreen.cpp
3 // Purpose: wxScreenDC class
4 // Author: David Webster
5 // Modified by:
6 // Created: 10/14/99
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 // For compilers that support precompilation, includes "wx.h".
12 #include "wx/wxprec.h"
13
14 #include "wx/os2/dcscreen.h"
15
16 #ifndef WX_PRECOMP
17 #include "wx/string.h"
18 #include "wx/window.h"
19 #endif
20
21 #include "wx/os2/private.h"
22
23 IMPLEMENT_ABSTRACT_CLASS(wxScreenDCImpl, wxPMDCImpl)
24
25 // Create a DC representing the whole screen
26 wxScreenDCImpl::wxScreenDCImpl( wxScreenDC *owner ) :
27 wxPMDCImpl( owner )
28 {
29 m_hDC = ::WinOpenWindowDC(HWND_DESKTOP);
30 m_hPS = ::WinGetScreenPS(HWND_DESKTOP);
31 ::GpiSetBackMix(m_hPS, BM_LEAVEALONE);
32 } // end of wxScreenDC::wxScreenDC()
33
34 void wxScreenDCImpl::DoGetSize( int* pnWidth,
35 int* pnHeight ) const
36 {
37 //
38 // Skip wxWindowDC version because it doesn't work without a valid m_canvas
39 // (which we don't have)
40 //
41 wxPMDCImpl::DoGetSize( pnWidth, pnHeight );
42
43 } // end of wxScreenDC::DoGetSize