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.

54 lines
1.5 KiB

  1. /* File: D:\WACKER\tdll\backscrl.h (Created: 10-Dec-1993)
  2. *
  3. * Copyright 1994 by Hilgraeve Inc. -- Monroe, MI
  4. * All rights reserved
  5. *
  6. * $Revision: 1 $
  7. * $Date: 10/05/98 12:34p $
  8. */
  9. #if !defined(INCL_HBACKSCRL)
  10. #define INCL_HBACKSCRL
  11. // Defines
  12. #define BKPOS_THUMBPOS 1
  13. #define BKPOS_ABSOLUTE 2
  14. #define BKSCRL_USERLINES_DEFAULT_MAX 500
  15. #define BKSCRL_USERLINES_DEFAULT_MIN 0
  16. // This macro use to calculate bytes needed to save ul lines.
  17. // The value is approximate.
  18. //
  19. #define BK_LINES_TO_BYTES(i) (i * 80)
  20. /* --- Function prototypes --- */
  21. void backscrlDestroy (const HBACKSCRL hBackscrl);
  22. BOOL backscrlAdd (const HBACKSCRL hBackscrl,
  23. const ECHAR *pachBuf,
  24. const int iLen
  25. );
  26. HBACKSCRL backscrlCreate (const HSESSION hSession, const int iBytes);
  27. BOOL backscrlGetBkLines (const HBACKSCRL hBackscrl,
  28. const int yBeg,
  29. const int iWant,
  30. int *piGot,
  31. ECHAR **lpstrTxt,
  32. int *piOffset
  33. );
  34. int backscrlGetNumLines (const HBACKSCRL hBackscrl);
  35. void backscrlSave(const HBACKSCRL hBackscrl);
  36. void backscrlFlush(const HBACKSCRL hBackscrl);
  37. BOOL backscrlChanged(const HBACKSCRL hBackscrl);
  38. void backscrlResetChangedFlag(const HBACKSCRL hBackscrl);
  39. void backscrlRead(const HBACKSCRL hBackscrl);
  40. int backscrlSetUNumLines (const HBACKSCRL hBackscrl, const int iUserLines);
  41. int backscrlGetUNumLines (const HBACKSCRL hBackscrl);
  42. void backscrlSetShowFlag(const HBACKSCRL hBackscrl, const int fFlag);
  43. #endif