Old fashion design for PC-104
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
943 B

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 05/08/2001
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: MemoryDC.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of MemoryDC.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __MEMORY__DC__H__
  15. #define __MEMORY__DC__H__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. class CMemoryDC : public CDC
  20. {
  21. public:
  22. CMemoryDC();
  23. virtual ~CMemoryDC();
  24. public:
  25. BOOL Create( HBITMAP hBitmap, BOOL bCopy = TRUE );
  26. BOOL Create( int cx, int cy, COLORREF color = RGB(0,0,0) );
  27. public:
  28. virtual BOOL DeleteDC( );
  29. const CSize& GetSize() const { return m_Size; }
  30. private:
  31. CSize m_Size;
  32. CBitmap m_Bitmap;
  33. CBitmap*m_pBitmap;
  34. };
  35. #endif