]> git.saurik.com Git - wxWidgets.git/blob - src/msw/dcscreen.cpp
wxIsNumeric for values < 0
[wxWidgets.git] / src / msw / dcscreen.cpp
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 #endif
25
26 #include "wx/dcscreen.h"
27
28 #include <windows.h>
29
30 #if !USE_SHARED_LIBRARY
31 IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
32 #endif
33
34 // Create a DC representing the whole screen
35 wxScreenDC::wxScreenDC(void)
36 {
37 m_hDC = (WXHDC) ::GetDC(NULL);
38 m_hDCCount ++;
39 }
40
41 wxScreenDC::~wxScreenDC(void)
42 {
43 SelectOldObjects(m_hDC);
44 ::ReleaseDC(NULL, (HDC) m_hDC);
45 m_hDC = 0;
46 m_hDCCount --;
47 }
48