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.

78 lines
2.8 KiB

  1. /************************************************************/
  2. /* Windows Write, Copyright 1985-1992 Microsoft Corporation */
  3. /************************************************************/
  4. /* MS-Windows specific definitions */
  5. #define tidCaret 7734 /* Timer ID for caret blink (stand on your
  6. head to read it) */
  7. /* dwHsecKeyDawdle is the number of hundredths of seconds that we loop,
  8. waiting for keys, before we update the display. See insert.c */
  9. #define dwHsecKeyDawdle 35
  10. /* File rename/deletion coordination messages sent btwn WRITE instances */
  11. #define wWndMsgDeleteFile (WM_USER + 36)
  12. #define wWndMsgRenameFile (WM_USER + 37)
  13. /* System information message posted to self */
  14. #define wWndMsgSysChange (WM_USER + 38)
  15. #define wWininiChangeToWindows 1 /* used in posting above message */
  16. #define wWininiChangeToDevices 2
  17. #define wWininiChangeToIntl 4
  18. #define wWininiChangeMax ((1|2|4) + 1)
  19. #ifndef NOMETAFILE
  20. /* *** PICTURE THINGS *** */
  21. #define dypPicSizeMin 16 /* Smallest y-extent of a picture, in pixels */
  22. /* Also the dl height in a picture */
  23. #define MM_NIL -1
  24. #define MM_BITMAP 99 /* A Phony mapping mode code used within MEMO */
  25. /* xExt, yExt must be filled out as for MM_TEXT */
  26. #define MM_OLE 100 /* Another phony mapping mode code used
  27. with Objects/Links */
  28. #define MM_EXTENDED 0x80 /* Bit set for New file format */
  29. /* A Bitmap or Picture appears in a file as a PICINFO or PICINFOX
  30. + an Array of Bits,
  31. if it's a bitmap, or the contents of a memory metafile, if it's a picture.
  32. This all appears in the cp stream
  33. A PICINFO is a PICINFOX without the extended format fields.
  34. a PICINFO has the mfp.mm MM_EXTENDED bit cleared
  35. a PICINFOX has the mfp.mm MM_EXTENDED bit set
  36. */
  37. /* If you change this, you must change "cchOldPICINFO" */
  38. struct PICINFOX {
  39. METAFILEPICT mfp;
  40. int dxaOffset;
  41. int dxaSize;
  42. int dyaSize;
  43. unsigned cbOldSize; /* For old file support only */
  44. BITMAP bm; /* Additional info for bitmaps only */
  45. /* Extended format -- add these fields */
  46. unsigned cbHeader; /* Size of this header (sizeof (struct PICINFOX)) */
  47. unsigned long cbSize; /* This field replaces cbOldSize on new files */
  48. unsigned mx, my; /* Multiplier for scaled bitmap */
  49. };
  50. #define mxMultByOne 1000 /* mx == 1 implies same size; 2 doubles, etc. */
  51. #define myMultByOne 1000
  52. #define cchOldPICINFO (sizeof(struct PICINFOX) - sizeof(long) - \
  53. sizeof(unsigned) - 2 * sizeof (int))
  54. #define cchPICINFOX (sizeof(struct PICINFOX))
  55. #endif /* ifndef NOMETAFILE */
  56.