]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/msw/dcscreen.cpp
Moved bunch of #defines (LOG2DEV etc) from msw/dc.cpp to msw/dc.h
[wxWidgets.git] / src / msw / dcscreen.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: dcscreen.cpp
3// Purpose: wxScreenDC class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart and Markus Holzem
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma implementation "dcscreen.h"
14#endif
15
16// For compilers that support precompilation, includes "wx.h".
17#include "wx/wxprec.h"
18
19#ifdef __BORLANDC__
20#pragma hdrstop
21#endif
22
23#ifndef WX_PRECOMP
24 #include "wx/string.h"
25 #include "wx/window.h"
26 #include "wx/msw/private.h"
27#endif
28
29#include "wx/dcscreen.h"
30
31
32#if !USE_SHARED_LIBRARY
33IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
34#endif
35
36// Create a DC representing the whole screen
37wxScreenDC::wxScreenDC(void)
38{
39 m_hDC = (WXHDC) ::GetDC((HWND) NULL);
40 m_hDCCount ++;
41}
42
43wxScreenDC::~wxScreenDC(void)
44{
45 SelectOldObjects(m_hDC);
46 ::ReleaseDC((HWND) NULL, (HDC) m_hDC);
47 m_hDC = 0;
48 m_hDCCount --;
49}
50