]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/dcmemory.h
don't define wxMBFILES for Borland, this breaks compilation with wxUSE_UNICODE_MSLU...
[wxWidgets.git] / include / wx / os2 / dcmemory.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: dcmemory.h
3 // Purpose: wxMemoryDC class
4 // Author: David Webster
5 // Modified by:
6 // Created: 09/09/99
7 // RCS-ID: $Id$
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_DCMEMORY_H_
13 #define _WX_DCMEMORY_H_
14
15 #include "wx/dcclient.h"
16
17 class WXDLLEXPORT wxMemoryDC: public wxDC, public wxMemoryDCBase
18 {
19 public:
20 wxMemoryDC() { CreateCompatible(NULL); Init(); }
21 wxMemoryDC(wxBitmap& bitmap) { CreateCompatible(NULL); Init(); SelectObject(bitmap); }
22 wxMemoryDC(wxDC* pDC); // Create compatible DC
23
24 protected:
25 // override some base class virtuals
26 virtual void DoGetSize( int* pWidth
27 ,int* pHeight
28 ) const;
29 virtual void DoSelect(const wxBitmap& bitmap);
30
31 // create DC compatible with the given one or screen if dc == NULL
32 bool CreateCompatible(wxDC* pDC);
33
34 // initialize the newly created DC
35 void Init(void);
36 private:
37 DECLARE_DYNAMIC_CLASS(wxMemoryDC)
38 }; // end of CLASS wxMemoryDC
39
40 #endif
41 // _WX_DCMEMORY_H_