Leaked source code of windows server 2003
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.

45 lines
849 B

  1. /*
  2. * Metafile converter/loader
  3. */
  4. #ifndef DUI_UTIL_EMFLOAD_H_INCLUDED
  5. #define DUI_UTIL_EMFLOAD_H_INCLUDED
  6. #pragma once
  7. namespace DirectUI
  8. {
  9. #define HIMETRICINCH 2540
  10. #define APM_SIGNATURE 0x9AC6CDD7
  11. // Metafile Pagemaker structures
  12. #ifndef RC_INVOKED
  13. #pragma pack(2)
  14. typedef struct tagRECTS
  15. {
  16. short left;
  17. short top;
  18. short right;
  19. short bottom;
  20. } RECTS, *PRECTS;
  21. typedef struct tagAPMFILEHEADER
  22. {
  23. DWORD key;
  24. WORD hmf;
  25. RECTS bbox;
  26. WORD inch;
  27. DWORD reserved;
  28. WORD checksum;
  29. } APMFILEHEADER, *PAPMFILEHEADER;
  30. #pragma pack()
  31. #endif
  32. HENHMETAFILE LoadMetaFile(LPCWSTR pszMetaFile);
  33. HENHMETAFILE LoadMetaFile(UINT uRCID, HINSTANCE hInst);
  34. HENHMETAFILE LoadMetaFile(void* pData, UINT cbSize);
  35. } // namespace DirectUI
  36. #endif // DUI_UTIL_EMFLOAD_H_INCLUDED