1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2001-04-08 21:22:48 -04:00
|
|
|
// Name: wx/msw/dcscreen.h
|
1998-05-20 10:12:05 -04:00
|
|
|
// Purpose: wxScreenDC class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
1998-08-07 19:52:45 -04:00
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2005-12-24 21:34:42 -05:00
|
|
|
#ifndef _WX_MSW_DCSCREEN_H_
|
|
|
|
#define _WX_MSW_DCSCREEN_H_
|
1998-05-20 10:12:05 -04:00
|
|
|
|
2005-12-24 21:34:42 -05:00
|
|
|
#include "wx/dc.h"
|
1998-05-20 10:12:05 -04:00
|
|
|
|
2005-12-24 21:34:42 -05:00
|
|
|
class WXDLLEXPORT wxScreenDC : public wxDC
|
1998-05-20 10:12:05 -04:00
|
|
|
{
|
2001-04-08 21:22:48 -04:00
|
|
|
public:
|
|
|
|
// Create a DC representing the whole screen
|
|
|
|
wxScreenDC();
|
|
|
|
|
2005-12-25 07:52:53 -05:00
|
|
|
// Compatibility with X's requirements for drawing on top of all windows:
|
|
|
|
// they don't do anything under MSW
|
|
|
|
static bool StartDrawingOnTop(wxWindow* WXUNUSED(window)) { return true; }
|
|
|
|
static bool StartDrawingOnTop(wxRect* WXUNUSED(rect) = NULL) { return true; }
|
|
|
|
static bool EndDrawingOnTop() { return true; }
|
2002-03-04 19:52:01 -05:00
|
|
|
|
|
|
|
protected:
|
2005-12-24 21:34:42 -05:00
|
|
|
virtual void DoGetSize(int *w, int *h) const
|
|
|
|
{
|
|
|
|
GetDeviceSize(w, h);
|
|
|
|
}
|
2001-04-08 21:22:48 -04:00
|
|
|
|
|
|
|
private:
|
2003-07-21 20:24:07 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxScreenDC)
|
1998-05-20 10:12:05 -04:00
|
|
|
};
|
|
|
|
|
2005-12-24 21:34:42 -05:00
|
|
|
#endif // _WX_MSW_DCSCREEN_H_
|
1998-05-20 10:12:05 -04:00
|
|
|
|