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