]>
git.saurik.com Git - wxWidgets.git/blob - src/os2/dcscreen.cpp
   1 ///////////////////////////////////////////////////////////////////////////// 
   2 // Name:        src/os2/dcscreen.cpp 
   3 // Purpose:     wxScreenDC class 
   4 // Author:      David Webster 
   8 // Copyright:   (c) David Webster 
   9 // Licence:     wxWindows licence 
  10 ///////////////////////////////////////////////////////////////////////////// 
  12 // For compilers that support precompilation, includes "wx.h". 
  13 #include "wx/wxprec.h" 
  15 #include "wx/os2/dcscreen.h" 
  18     #include "wx/string.h" 
  19     #include "wx/window.h" 
  22 #include "wx/os2/private.h" 
  24 IMPLEMENT_ABSTRACT_CLASS(wxScreenDCImpl
, wxPMDCImpl
) 
  26 // Create a DC representing the whole screen 
  27 wxScreenDCImpl::wxScreenDCImpl( wxScreenDC 
*owner 
) : 
  30     m_hDC 
= ::WinOpenWindowDC(HWND_DESKTOP
); 
  31     m_hPS 
= ::WinGetScreenPS(HWND_DESKTOP
); 
  32     ::GpiSetBackMix(m_hPS
, BM_LEAVEALONE
); 
  33 } // end of wxScreenDC::wxScreenDC() 
  35 void wxScreenDCImpl::DoGetSize( int* pnWidth
, 
  39     // Skip wxWindowDC version because it doesn't work without a valid m_canvas 
  40     // (which we don't have) 
  42     wxPMDCImpl::DoGetSize( pnWidth
, pnHeight 
); 
  44 } // end of wxScreenDC::DoGetSize