]> git.saurik.com Git - wxWidgets.git/blame - src/os2/dcscreen.cpp
derive wxSTC from wxTextAreaBase to provide wxTextCtrl-like methods (see #9114)
[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
15#define INCL_DEV
16#define INCL_GPI
17#define INCL_PM
18#include<os2.h>
19
2c24e7ad 20#include "wx/os2/dcscreen.h"
11dbb4bf 21
fb46a9a6 22#ifndef WX_PRECOMP
11dbb4bf
WS
23 #include "wx/string.h"
24 #include "wx/window.h"
0e320a79
DW
25#endif
26
fb46a9a6
DW
27#include "wx/os2/private.h"
28
2c24e7ad 29IMPLEMENT_ABSTRACT_CLASS(wxScreenDCImpl, wxPMDCImpl)
0e320a79
DW
30
31// Create a DC representing the whole screen
2c24e7ad
SN
32wxScreenDCImpl::wxScreenDCImpl( wxScreenDC *owner ) :
33 wxPMDCImpl( owner )
0e320a79 34{
e1a688e4
DW
35 m_hDC = ::WinOpenWindowDC(HWND_DESKTOP);
36 m_hPS = ::WinGetScreenPS(HWND_DESKTOP);
37 ::GpiSetBackMix(m_hPS, BM_LEAVEALONE);
38} // end of wxScreenDC::wxScreenDC()
0e320a79 39
2c24e7ad
SN
40void wxScreenDCImpl::DoGetSize( int* pnWidth,
41 int* pnHeight ) const
98f2b814
DW
42{
43 //
44 // Skip wxWindowDC version because it doesn't work without a valid m_canvas
45 // (which we don't have)
46 //
2c24e7ad 47 wxPMDCImpl::DoGetSize( pnWidth, pnHeight );
0e320a79 48
11dbb4bf 49} // end of wxScreenDC::DoGetSize