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.

51 lines
1.3 KiB

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: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: Background.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of Background.h
  13. //----------------------------------------------------------------------------
  14. #if !defined(AFX_BACKGROUND_H__8F82EE14_0EA6_4AAD_8671_B042B7DF5DF0__INCLUDED_)
  15. #define AFX_BACKGROUND_H__8F82EE14_0EA6_4AAD_8671_B042B7DF5DF0__INCLUDED_
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "..\..\LgLib\MFC\LgMetaFile.h"
  20. #include "..\..\LgLib\MFC\MemoryDC.h"
  21. #include "..\..\LgLib\MFC\FileGroup.h"
  22. class CBackground
  23. {
  24. public:
  25. CBackground();
  26. virtual ~CBackground();
  27. public:
  28. BOOL Load( LPCTSTR pFileName, CLgFileGroup *pFileGroup );
  29. BOOL Draw( CDC *pDC, CRect *pRect );
  30. const CSize& GetSize() const { return m_Size; }
  31. private:
  32. enum E_Type { ET_GENERIC, ET_BITMAP, ET_METAFILE };
  33. private:
  34. CSize m_Size;
  35. CLgMetaFile m_MetaFile;
  36. CLgMemoryDC m_MemoryDC;
  37. E_Type m_Type;
  38. LPBYTE m_pBuffer;
  39. INT m_nBufferSize;
  40. OSVERSIONINFO m_VersionInfo;
  41. CRITICAL_SECTION m_CritSection;
  42. };
  43. #endif