]> git.saurik.com Git - wxWidgets.git/blob - src/msw/dcscreen.cpp
Fixed non-precompiled headers compilation
[wxWidgets.git] / src / msw / dcscreen.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/msw/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
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
14
15 #ifdef __BORLANDC__
16 #pragma hdrstop
17 #endif
18
19 #include "wx/msw/dcscreen.h"
20
21 #ifndef WX_PRECOMP
22 #include "wx/string.h"
23 #include "wx/window.h"
24 #endif
25
26 #include "wx/msw/private.h"
27
28 IMPLEMENT_ABSTRACT_CLASS(wxScreenDCImpl, wxMSWDCImpl)
29
30 // Create a DC representing the whole screen
31 wxScreenDCImpl::wxScreenDCImpl( wxScreenDC *owner ) :
32 wxMSWDCImpl( owner )
33 {
34 m_hDC = (WXHDC) ::GetDC((HWND) NULL);
35
36 // the background mode is only used for text background and is set in
37 // DrawText() to OPAQUE as required, otherwise always TRANSPARENT
38 ::SetBkMode( GetHdc(), TRANSPARENT );
39 }
40