1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxClientDC class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart and Markus Holzem
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_DCCLIENT_H_
13 #define _WX_DCCLIENT_H_
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
20 #pragma interface "dcclient.h"
24 #include "wx/dynarray.h"
26 // ----------------------------------------------------------------------------
28 // ----------------------------------------------------------------------------
30 // this one if used by wxPaintDC only
31 struct WXDLLEXPORT wxPaintDCInfo
;
33 WX_DECLARE_OBJARRAY(wxPaintDCInfo
, wxArrayDCInfo
);
35 // ----------------------------------------------------------------------------
37 // ----------------------------------------------------------------------------
39 class WXDLLEXPORT wxWindowDC
: public wxDC
41 DECLARE_DYNAMIC_CLASS(wxWindowDC
)
46 // Create a DC corresponding to the whole window
47 wxWindowDC(wxWindow
*win
);
49 virtual ~wxWindowDC();
58 class WXDLLEXPORT wxClientDC
: public wxWindowDC
60 DECLARE_DYNAMIC_CLASS(wxClientDC
)
65 // Create a DC corresponding to the client area of the window
66 wxClientDC(wxWindow
*win
);
68 virtual ~wxClientDC();
71 class WXDLLEXPORT wxPaintDC
: public wxWindowDC
73 DECLARE_DYNAMIC_CLASS(wxPaintDC
)
78 // Create a DC corresponding for painting the window in OnPaint()
79 wxPaintDC(wxWindow
*win
);
84 static wxArrayDCInfo ms_cache
;
86 // find the entry for this DC in the cache (keyed by the window)
87 wxPaintDCInfo
*FindInCache(size_t *index
= NULL
) const;