]>
git.saurik.com Git - wxWidgets.git/blob - src/msw/dcscreen.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/msw/dcscreen.cpp
3 // Purpose: wxScreenDC class
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // For compilers that support precompilation, includes "wx.h".
12 #include "wx/wxprec.h"
18 #include "wx/msw/dcscreen.h"
21 #include "wx/string.h"
22 #include "wx/window.h"
25 #include "wx/msw/private.h"
27 IMPLEMENT_ABSTRACT_CLASS(wxScreenDCImpl
, wxMSWDCImpl
)
29 // Create a DC representing the whole screen
30 wxScreenDCImpl::wxScreenDCImpl( wxScreenDC
*owner
) :
33 m_hDC
= (WXHDC
) ::GetDC((HWND
) NULL
);
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
);