]>
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 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"
32 IMPLEMENT_DYNAMIC_CLASS(wxScreenDC
, wxWindowDC
)
34 // Create a DC representing the whole screen
35 wxScreenDC::wxScreenDC()
37 m_hDC
= (WXHDC
) ::GetDC((HWND
) NULL
);
39 // the background mode is only used for text background and is set in
40 // DrawText() to OPAQUE as required, otherwise always TRANSPARENT
41 ::SetBkMode( GetHdc(), TRANSPARENT
);
44 void wxScreenDC::DoGetSize(int *width
, int *height
) const
46 // skip wxWindowDC version because it doesn't work without a valid m_canvas
47 // (which we don't have)
48 wxDC::DoGetSize(width
, height
);