]>
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
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
20 #include "wx/string.h"
21 #include "wx/window.h"
24 #include "wx/msw/private.h"
26 #include "wx/dcscreen.h"
28 IMPLEMENT_DYNAMIC_CLASS(wxScreenDC
, wxWindowDC
)
30 // Create a DC representing the whole screen
31 wxScreenDC::wxScreenDC()
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
);
40 void wxScreenDC::DoGetSize(int *width
, int *height
) const
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
);