]>
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"
26 #include "wx/dcscreen.h"
30 #if !USE_SHARED_LIBRARY
31 IMPLEMENT_DYNAMIC_CLASS(wxScreenDC
, wxWindowDC
)
34 // Create a DC representing the whole screen
35 wxScreenDC::wxScreenDC(void)
37 m_hDC
= (WXHDC
) ::GetDC((HWND
) NULL
);
41 wxScreenDC::~wxScreenDC(void)
43 SelectOldObjects(m_hDC
);
44 ::ReleaseDC((HWND
) NULL
, (HDC
) m_hDC
);