]> git.saurik.com Git - wxWidgets.git/blame - src/msw/dcscreen.cpp
fixed wide char codeset detection for systems which do support LE/BE variants (broken...
[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__
16#pragma hdrstop
17#endif
18
19#ifndef WX_PRECOMP
0c589ad0
BM
20 #include "wx/string.h"
21 #include "wx/window.h"
2bda0e17
KB
22#endif
23
5ea47806
VZ
24#include "wx/msw/private.h"
25
2bda0e17
KB
26#include "wx/dcscreen.h"
27
2bda0e17 28IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
2bda0e17
KB
29
30// Create a DC representing the whole screen
7ba4fbeb 31wxScreenDC::wxScreenDC()
2bda0e17 32{
7ba4fbeb 33 m_hDC = (WXHDC) ::GetDC((HWND) NULL);
c45a644e 34
7ba4fbeb
VZ
35 // the background mode is only used for text background and is set in
36 // DrawText() to OPAQUE as required, otherwise always TRANSPARENT
37 ::SetBkMode( GetHdc(), TRANSPARENT );
2bda0e17
KB
38}
39
41ff8313
VZ
40void wxScreenDC::DoGetSize(int *width, int *height) const
41{
42 // skip wxWindowDC version because it doesn't work without a valid m_canvas
43 // (which we don't have)
44 wxDC::DoGetSize(width, height);
45}
46