]> git.saurik.com Git - wxWidgets.git/blame - src/mgl/dcscreen.cpp
MSVC 5 compilation fixes.
[wxWidgets.git] / src / mgl / dcscreen.cpp
CommitLineData
32b8ec41
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: dcscreen.cpp
a4bbc9f7 3// Author: Vaclav Slavik
32b8ec41 4// Id: $Id$
c41c20a5 5// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
32b8ec41
VZ
6// Licence: wxWindows licence
7/////////////////////////////////////////////////////////////////////////////
8
9#ifdef __GNUG__
10#pragma implementation "dcscreen.h"
11#endif
12
a4bbc9f7
VS
13// For compilers that support precompilation, includes "wx.h".
14#include "wx/wxprec.h"
15
16#ifdef __BORLANDC__
17 #pragma hdrstop
18#endif
19
32b8ec41 20#include "wx/dcscreen.h"
a4bbc9f7 21#include "wx/mgl/private.h"
32b8ec41 22
a4bbc9f7 23IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxDC)
32b8ec41 24
a4bbc9f7
VS
25wxScreenDC::wxScreenDC() : wxDC()
26{
27 SetMGLDC(g_displayDC, FALSE /* no ownership */);
69830d1f
VS
28
29 // VS: we have to hide the mouse, otherwise rendering artifacts may occur
30 MS_obscure();
31}
32
33wxScreenDC::~wxScreenDC()
34{
35 MS_show();
a4bbc9f7 36}