]> git.saurik.com Git - wxWidgets.git/blame - src/os2/dcscreen.cpp
concentrating content and structure region calculations
[wxWidgets.git] / src / os2 / dcscreen.cpp
CommitLineData
0e320a79
DW
1/////////////////////////////////////////////////////////////////////////////
2// Name: dcscreen.cpp
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
0e320a79
DW
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
aa213887
SN
12#ifdef __GNUG__
13#pragma implementation "dcscreen.h"
14#endif
15
fb46a9a6
DW
16// For compilers that support precompilation, includes "wx.h".
17#include "wx/wxprec.h"
18
19#define INCL_DEV
20#define INCL_GPI
21#define INCL_PM
22#include<os2.h>
23
24#ifndef WX_PRECOMP
25 #include "wx/string.h"
26 #include "wx/window.h"
0e320a79
DW
27#endif
28
fb46a9a6
DW
29#include "wx/os2/private.h"
30
0e320a79
DW
31#include "wx/dcscreen.h"
32
0e320a79 33IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
0e320a79
DW
34
35// Create a DC representing the whole screen
36wxScreenDC::wxScreenDC()
37{
e1a688e4
DW
38 m_hDC = ::WinOpenWindowDC(HWND_DESKTOP);
39 m_hPS = ::WinGetScreenPS(HWND_DESKTOP);
40 ::GpiSetBackMix(m_hPS, BM_LEAVEALONE);
41} // end of wxScreenDC::wxScreenDC()
0e320a79 42
98f2b814
DW
43void wxScreenDC::DoGetSize(
44 int* pnWidth
45, int* pnHeight
46) const
47{
48 //
49 // Skip wxWindowDC version because it doesn't work without a valid m_canvas
50 // (which we don't have)
51 //
52 wxDC::DoGetSize( pnWidth
53 ,pnHeight
54 );
55} // end of wxScreenDC::DoGetSize
0e320a79 56