]> git.saurik.com Git - wxWidgets.git/blame - src/msw/dcscreen.cpp
compilation fix for wxUSE_RESOURCE_LOADING_IN_MSW == 0
[wxWidgets.git] / src / msw / dcscreen.cpp
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////////
7ba4fbeb 2// Name: src/msw/dcscreen.cpp
2bda0e17
KB
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
7ba4fbeb 9// Licence: wxWindows licence
2bda0e17
KB
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
0c589ad0
BM
24 #include "wx/string.h"
25 #include "wx/window.h"
2bda0e17
KB
26#endif
27
5ea47806
VZ
28#include "wx/msw/private.h"
29
2bda0e17
KB
30#include "wx/dcscreen.h"
31
2bda0e17 32IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
2bda0e17
KB
33
34// Create a DC representing the whole screen
7ba4fbeb 35wxScreenDC::wxScreenDC()
2bda0e17 36{
7ba4fbeb 37 m_hDC = (WXHDC) ::GetDC((HWND) NULL);
c45a644e 38
7ba4fbeb
VZ
39 // the background mode is only used for text background and is set in
40 // DrawText() to OPAQUE as required, otherwise always TRANSPARENT
41 ::SetBkMode( GetHdc(), TRANSPARENT );
2bda0e17
KB
42}
43
41ff8313
VZ
44void wxScreenDC::DoGetSize(int *width, int *height) const
45{
46 // skip wxWindowDC version because it doesn't work without a valid m_canvas
47 // (which we don't have)
48 wxDC::DoGetSize(width, height);
49}
50