]> git.saurik.com Git - wxWidgets.git/blame - src/mac/dcscreen.cpp
corrected an superfluous initfloatingwindows call in carbon
[wxWidgets.git] / src / mac / dcscreen.cpp
CommitLineData
e9576ca5
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: dcscreen.cpp
3// Purpose: wxScreenDC class
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma implementation "dcscreen.h"
14#endif
15
16#include "wx/dcscreen.h"
2f1ae414 17#include "wx/mac/uma.h"
e9576ca5 18
2f1ae414 19#if !USE_SHARED_LIBRARY
e9576ca5 20IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
2f1ae414 21#endif
e9576ca5
SC
22
23// Create a DC representing the whole screen
24wxScreenDC::wxScreenDC()
25{
2f1ae414
SC
26#if TARGET_CARBON
27 m_macPort = GetQDGlobalsThePort() ;
28#else
519cb848 29 m_macPort = LMGetWMgrPort() ;
2f1ae414 30#endif
519cb848
SC
31 MacSetupPort() ;
32 m_ok = TRUE ;
2f1ae414
SC
33 BitMap screenBits;
34 GetQDGlobalsScreenBits( &screenBits );
35 m_minX = screenBits.bounds.left ;
36 #if TARGET_CARBON
37 SInt16 height ;
38 GetThemeMenuBarHeight( &height ) ;
39 m_minY = screenBits.bounds.top + height ;
40 #else
41 m_minY = screenBits.bounds.top + LMGetMBarHeight() ;
42 #endif
43 m_maxX = screenBits.bounds.right ;
44 m_maxY = screenBits.bounds.bottom ;
e9576ca5
SC
45}
46
47wxScreenDC::~wxScreenDC()
48{
49 // TODO
50}
51