]> git.saurik.com Git - wxWidgets.git/blame - src/msw/dcscreen.cpp
wxMessageBox off the main thread lost result code.
[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
6c9a19aa 7// Copyright: (c) Julian Smart
65571936 8// Licence: wxWindows licence
2bda0e17
KB
9/////////////////////////////////////////////////////////////////////////////
10
2bda0e17
KB
11// For compilers that support precompilation, includes "wx.h".
12#include "wx/wxprec.h"
13
14#ifdef __BORLANDC__
11dbb4bf 15 #pragma hdrstop
2bda0e17
KB
16#endif
17
888dde65 18#include "wx/msw/dcscreen.h"
11dbb4bf 19
2bda0e17 20#ifndef WX_PRECOMP
0c589ad0
BM
21 #include "wx/string.h"
22 #include "wx/window.h"
2bda0e17
KB
23#endif
24
5ea47806
VZ
25#include "wx/msw/private.h"
26
888dde65 27IMPLEMENT_ABSTRACT_CLASS(wxScreenDCImpl, wxMSWDCImpl)
2bda0e17
KB
28
29// Create a DC representing the whole screen
888dde65
RR
30wxScreenDCImpl::wxScreenDCImpl( wxScreenDC *owner ) :
31 wxMSWDCImpl( owner )
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 38}
888dde65 39