1 ///////////////////////////////////////////////////////////////////////////// 2 // Name: src/msw/dcscreen.cpp 3 // Purpose: wxScreenDC class 4 // Author: Julian Smart 5 // Modified by: 6 // Created: 01/02/97 7 // Copyright: (c) Julian Smart 8 // Licence: wxWindows licence 9 ///////////////////////////////////////////////////////////////////////////// 10 11 // For compilers that support precompilation, includes "wx.h". 12 #include "wx/wxprec.h" 13 14 #ifdef __BORLANDC__ 15 #pragma hdrstop 16 #endif 17 18 #include "wx/msw/dcscreen.h" 19 20 #ifndef WX_PRECOMP 21 #include "wx/string.h" 22 #include "wx/window.h" 23 #endif 24 25 #include "wx/msw/private.h" 26 IMPLEMENT_ABSTRACT_CLASS(wxScreenDCImpl,wxMSWDCImpl)27IMPLEMENT_ABSTRACT_CLASS(wxScreenDCImpl, wxMSWDCImpl) 28 29 // Create a DC representing the whole screen 30 wxScreenDCImpl::wxScreenDCImpl( wxScreenDC *owner ) : 31 wxMSWDCImpl( owner ) 32 { 33 m_hDC = (WXHDC) ::GetDC((HWND) NULL); 34 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 ); 38 } 39 40