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.

61 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: Laserguard libraries
  7. // SUBSYSTEM: MFC support library
  8. // FILE: LgMetaFile.h
  9. // AUTHOR: Chizhevskiy Sergey
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of CLgMetaFile
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__METAFILE__H__INCLUDED__
  15. #define __LG__METAFILE__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "..\LgImageWMF.h"
  20. #define CLgMetaFile CLgImageEMF
  21. /*
  22. public:
  23. CLgMetaFile();
  24. virtual ~CLgMetaFile();
  25. public:
  26. BOOL Load( LPCTSTR pFileName );
  27. public:
  28. const SIZE& GetSize() const { return m_Size; }
  29. const HENHMETAFILE GetSafeHandle() const { return m_hHandle; }
  30. operator HENHMETAFILE() const { return GetSafeHandle(); }
  31. private:
  32. #pragma pack(1)
  33. struct APMFILEHEADER
  34. {
  35. DWORD Key;
  36. SHORT Handle;
  37. SMALL_RECT Box;
  38. WORD Inch;
  39. DWORD Reserved;
  40. WORD CheckSum;
  41. };
  42. #pragma pack()
  43. WORD ComputeAldusChecksum( APMFILEHEADER* pMFH );
  44. private:
  45. BOOL LoadWMF( LPCTSTR pFileName );
  46. BOOL LoadEMF( LPCTSTR pFileName );
  47. private:
  48. HENHMETAFILE m_hHandle;
  49. SIZE m_Size;
  50. };
  51. */
  52. #endif