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.

44 lines
1.2 KiB

  1. /* File: D:\WACKER\tdll\backscrl.hh (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:41p $
  8. */
  9. #if !defined(INCL_HHBACKSCRL)
  10. #define INCL_HHBACKSCRL
  11. typedef struct stBackscrlPage * HBKPAGE;
  12. typedef struct stBackscrl * HHBACKSCRL;
  13. struct stBackscrl
  14. {
  15. HBKPAGE *hBkPages; // where the pages live (array of ptrs).
  16. int iPages, // number of backscroll pages.
  17. iCurrPage, // current page
  18. iOffset, // offset into current page.
  19. iLines, // total number of lines in all pages
  20. iChanged, // backscrl has changed since last
  21. // backscrlResetChangeFlag() call
  22. iUserLines, // User set number of backscroll lines to save
  23. iUserLinesSave; // Starting value
  24. int fShowBackscrl; // Turns backscroll display on/off
  25. HSESSION hSession;
  26. };
  27. /* --- Macros --- */
  28. #define BACKSCRL_PAGESIZE (1024)
  29. #define BACKSCRL_MAXPAGES (INT_MAX / (int)sizeof(HBKPAGE))
  30. struct stBackscrlPage
  31. {
  32. int iLines; // number of lines stored in this page
  33. ECHAR *pachPage; // text buffer for page.
  34. };
  35. #endif