]> git.saurik.com Git - wxWidgets.git/blame - src/os2/dcscreen.cpp
Fix install_name_tool calls in OS X "make install".
[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
fb46a9a6 7// Copyright: (c) David Webster
11dbb4bf 8// Licence: wxWindows licence
0e320a79
DW
9/////////////////////////////////////////////////////////////////////////////
10
fb46a9a6
DW
11// For compilers that support precompilation, includes "wx.h".
12#include "wx/wxprec.h"
13
2c24e7ad 14#include "wx/os2/dcscreen.h"
11dbb4bf 15
fb46a9a6 16#ifndef WX_PRECOMP
11dbb4bf
WS
17 #include "wx/string.h"
18 #include "wx/window.h"
0e320a79
DW
19#endif
20
fb46a9a6
DW
21#include "wx/os2/private.h"
22
2c24e7ad 23IMPLEMENT_ABSTRACT_CLASS(wxScreenDCImpl, wxPMDCImpl)
0e320a79
DW
24
25// Create a DC representing the whole screen
2c24e7ad
SN
26wxScreenDCImpl::wxScreenDCImpl( wxScreenDC *owner ) :
27 wxPMDCImpl( owner )
0e320a79 28{
e1a688e4
DW
29 m_hDC = ::WinOpenWindowDC(HWND_DESKTOP);
30 m_hPS = ::WinGetScreenPS(HWND_DESKTOP);
31 ::GpiSetBackMix(m_hPS, BM_LEAVEALONE);
32} // end of wxScreenDC::wxScreenDC()
0e320a79 33
2c24e7ad
SN
34void wxScreenDCImpl::DoGetSize( int* pnWidth,
35 int* pnHeight ) const
98f2b814
DW
36{
37 //
38 // Skip wxWindowDC version because it doesn't work without a valid m_canvas
39 // (which we don't have)
40 //
2c24e7ad 41 wxPMDCImpl::DoGetSize( pnWidth, pnHeight );
0e320a79 42
11dbb4bf 43} // end of wxScreenDC::DoGetSize