]> git.saurik.com Git - wxWidgets.git/blame - src/msw/dcscreen.cpp
removed hardcoded size of 66 bytes of PRINTDLG struct for mingw32, this breaks printi...
[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$
6c9a19aa 8// Copyright: (c) Julian Smart
65571936 9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
2bda0e17
KB
12// For compilers that support precompilation, includes "wx.h".
13#include "wx/wxprec.h"
14
15#ifdef __BORLANDC__
11dbb4bf 16 #pragma hdrstop
2bda0e17
KB
17#endif
18
888dde65 19#include "wx/msw/dcscreen.h"
11dbb4bf 20
2bda0e17 21#ifndef WX_PRECOMP
0c589ad0
BM
22 #include "wx/string.h"
23 #include "wx/window.h"
2bda0e17
KB
24#endif
25
5ea47806
VZ
26#include "wx/msw/private.h"
27
888dde65 28IMPLEMENT_ABSTRACT_CLASS(wxScreenDCImpl, wxMSWDCImpl)
2bda0e17
KB
29
30// Create a DC representing the whole screen
888dde65
RR
31wxScreenDCImpl::wxScreenDCImpl( wxScreenDC *owner ) :
32 wxMSWDCImpl( owner )
2bda0e17 33{
7ba4fbeb 34 m_hDC = (WXHDC) ::GetDC((HWND) NULL);
c45a644e 35
7ba4fbeb
VZ
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 );
2bda0e17 39}
888dde65 40