]> git.saurik.com Git - wxWidgets.git/blame - src/os2/dcscreen.cpp
changed background color reference from light gray to assigned bkgd color
[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
65571936 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
20#ifndef WX_PRECOMP
21 #include "wx/string.h"
22 #include "wx/window.h"
0e320a79
DW
23#endif
24
fb46a9a6
DW
25#include "wx/os2/private.h"
26
0e320a79
DW
27#include "wx/dcscreen.h"
28
0e320a79 29IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
0e320a79
DW
30
31// Create a DC representing the whole screen
32wxScreenDC::wxScreenDC()
33{
e1a688e4
DW
34 m_hDC = ::WinOpenWindowDC(HWND_DESKTOP);
35 m_hPS = ::WinGetScreenPS(HWND_DESKTOP);
36 ::GpiSetBackMix(m_hPS, BM_LEAVEALONE);
37} // end of wxScreenDC::wxScreenDC()
0e320a79 38
98f2b814
DW
39void wxScreenDC::DoGetSize(
40 int* pnWidth
41, int* pnHeight
42) const
43{
44 //
45 // Skip wxWindowDC version because it doesn't work without a valid m_canvas
46 // (which we don't have)
47 //
48 wxDC::DoGetSize( pnWidth
49 ,pnHeight
50 );
51} // end of wxScreenDC::DoGetSize
0e320a79 52