]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/dcmemory.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / os2 / dcmemory.h
CommitLineData
0e320a79 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/os2/dcmemory.h
0e320a79 3// Purpose: wxMemoryDC class
f0a56ab0 4// Author: David Webster
0e320a79 5// Modified by:
f0a56ab0 6// Created: 09/09/99
f0a56ab0 7// Copyright: (c) David Webster
65571936 8// Licence: wxWindows licence
0e320a79
DW
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_DCMEMORY_H_
12#define _WX_DCMEMORY_H_
13
2c24e7ad
SN
14#include "wx/dcmemory.h"
15#include "wx/os2/dc.h"
0e320a79 16
53a2db12 17class WXDLLIMPEXP_CORE wxMemoryDCImpl: public wxPMDCImpl
0e320a79 18{
5afb9458 19public:
2c24e7ad
SN
20 wxMemoryDCImpl( wxMemoryDC *owner );
21 wxMemoryDCImpl( wxMemoryDC *owner, wxBitmap& bitmap );
22 wxMemoryDCImpl( wxMemoryDC *owner, wxDC* pDC); // Create compatible DC
ce44c50e 23
ac7fb818 24 // override some base class virtuals
2c24e7ad 25 virtual void DoGetSize(int* pWidth, int* pHeight) const;
fea35690
VZ
26 virtual void DoSelect(const wxBitmap& bitmap);
27
03647350 28 virtual wxBitmap DoGetAsBitmap(const wxRect* subrect) const
2c24e7ad
SN
29 { return subrect == NULL ? GetSelectedBitmap() : GetSelectedBitmap().GetSubBitmap(*subrect);}
30
31protected:
ac7fb818
DW
32 // create DC compatible with the given one or screen if dc == NULL
33 bool CreateCompatible(wxDC* pDC);
34
35 // initialize the newly created DC
36 void Init(void);
37private:
2c24e7ad 38 DECLARE_CLASS(wxMemoryDCImpl)
c0c133e1 39 wxDECLARE_NO_COPY_CLASS(wxMemoryDCImpl);
2c24e7ad 40}; // end of CLASS wxMemoryDCImpl
0e320a79
DW
41
42#endif
43 // _WX_DCMEMORY_H_