home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2233.zip / wxOS2-2_3_3.zip / wxWindows-2.3.3 / include / wx / os2 / dcmemory.h < prev    next >
C/C++ Source or Header  |  2002-05-08  |  1KB  |  40 lines

  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: DCMEMORY.H,v 1.9 2002/05/07 04:56:22 DW Exp $
  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
  18. {
  19. public:
  20.     wxMemoryDC(void);
  21.     wxMemoryDC(wxDC* pDC); // Create compatible DC
  22.  
  23.     virtual void SelectObject(const wxBitmap& rBitmap);
  24. protected:
  25.     // override some base class virtuals
  26.     virtual void DoGetSize( int* pWidth
  27.                            ,int* pHeight
  28.                           ) const;
  29.     // create DC compatible with the given one or screen if dc == NULL
  30.     bool CreateCompatible(wxDC* pDC);
  31.  
  32.     // initialize the newly created DC
  33.     void Init(void);
  34. private:
  35.     DECLARE_DYNAMIC_CLASS(wxMemoryDC)
  36. }; // end of CLASS wxMemoryDC
  37.  
  38. #endif
  39.     // _WX_DCMEMORY_H_
  40.