X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fb46a9a6c6f291806a5fecbb848930c344e17e11..2adaf5969faf352d740f267b1a4ef79a2cf75980:/src/os2/dcscreen.cpp diff --git a/src/os2/dcscreen.cpp b/src/os2/dcscreen.cpp index 58fc9b97cf..3b3c6314b8 100644 --- a/src/os2/dcscreen.cpp +++ b/src/os2/dcscreen.cpp @@ -9,6 +9,10 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +#ifdef __GNUG__ +#pragma implementation "dcscreen.h" +#endif + // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -26,18 +30,14 @@ #include "wx/dcscreen.h" -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC) -#endif // Create a DC representing the whole screen wxScreenDC::wxScreenDC() { - // TODO -} + m_hDC = ::WinOpenWindowDC(HWND_DESKTOP); + m_hPS = ::WinGetScreenPS(HWND_DESKTOP); + ::GpiSetBackMix(m_hPS, BM_LEAVEALONE); +} // end of wxScreenDC::wxScreenDC() -wxScreenDC::~wxScreenDC() -{ - // TODO -}