]>
git.saurik.com Git - wxWidgets.git/blob - src/os2/dcscreen.cpp
   1 ///////////////////////////////////////////////////////////////////////////// 
   3 // Purpose:     wxScreenDC class 
   4 // Author:      David Webster 
   8 // Copyright:   (c) David Webster 
   9 // Licence:     wxWindows licence 
  10 ///////////////////////////////////////////////////////////////////////////// 
  13 #pragma implementation "dcscreen.h" 
  16 // For compilers that support precompilation, includes "wx.h". 
  17 #include "wx/wxprec.h" 
  25    #include "wx/string.h" 
  26    #include "wx/window.h" 
  29 #include "wx/os2/private.h" 
  31 #include "wx/dcscreen.h" 
  33 IMPLEMENT_DYNAMIC_CLASS(wxScreenDC
, wxWindowDC
) 
  35 // Create a DC representing the whole screen 
  36 wxScreenDC::wxScreenDC() 
  38     m_hDC 
= ::WinOpenWindowDC(HWND_DESKTOP
); 
  39     m_hPS 
= ::WinGetScreenPS(HWND_DESKTOP
); 
  40     ::GpiSetBackMix(m_hPS
, BM_LEAVEALONE
); 
  41 } // end of wxScreenDC::wxScreenDC()