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.

23 lines
810 B

  1. /************************************************************/
  2. /* Windows Write, Copyright 1985-1992 Microsoft Corporation */
  3. /************************************************************/
  4. /* This file contains some useful macros. */
  5. #define FillBuf(pb, cb, ch) bltbc((pb), (CHAR)(ch), cb)
  6. #define FSzSame(sz1, sz2) (WCompSz(sz1, sz2) == 0)
  7. #define SetWords(pw, w, cw) bltc((CHAR *)(pw), (unsigned)(w), cw)
  8. #define SetBytes(pb, b, cb) bltbc((CHAR *)(pb), (CHAR)(b), cb)
  9. #define NMultDiv(w1, w2, w3) MultDiv(w1, w2, w3)
  10. /* Theses macros are used by Windows Word to facilitate the conversion form
  11. Mac Word. */
  12. #define SetSpaceExtra(dxp) SetTextJustification(vhMDC, dxp, 1)
  13. #define TextWidth(rgch, w, cch) LOWORD(GetTextExtent(vhMDC, (LPSTR)rgch, cch))
  14.