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