]>
git.saurik.com Git - wxWidgets.git/blob - src/msw/dcscreen.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxScreenDC class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart and Markus Holzem
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation "dcscreen.h"
16 // For compilers that support precompilation, includes "wx.h".
17 #include "wx/wxprec.h"
24 #include "wx/string.h"
25 #include "wx/window.h"
28 #include "wx/msw/private.h"
30 #include "wx/dcscreen.h"
33 #if !USE_SHARED_LIBRARY
34 IMPLEMENT_DYNAMIC_CLASS(wxScreenDC
, wxWindowDC
)
37 // Create a DC representing the whole screen
38 wxScreenDC::wxScreenDC(void)
40 m_hDC
= (WXHDC
) ::GetDC((HWND
) NULL
);
43 // the background mode is only used for text background
44 // and is set in DrawText() to OPAQUE as required, other-
45 // wise always TRANSPARENT, RR
46 ::SetBkMode( GetHdc(), TRANSPARENT
);
49 wxScreenDC::~wxScreenDC(void)
51 SelectOldObjects(m_hDC
);
52 ::ReleaseDC((HWND
) NULL
, (HDC
) m_hDC
);