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.

80 lines
2.9 KiB

  1. /* File: D:\WACKER\tdll\term.h (Created: 29-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:35p $
  8. */
  9. #if !defined(INCL_EXT_TERM)
  10. #define INCL_EXT_TERM
  11. /* --- Class name needed in ProcessMessage() --- */
  12. #define TERM_CLASS "Term Class"
  13. // Some conventions:
  14. // Q = Query
  15. // S = Set
  16. #define WM_TERM_GETUPDATE WM_USER+0x100 // read update records
  17. // wPar=0, lPar=0
  18. #define WM_TERM_BEZEL WM_USER+0x101 // toggle bezel on/off
  19. // wPar=0, lPar=0
  20. #define WM_TERM_Q_BEZEL WM_USER+0x102 // query bezel status (on/off)
  21. // wPar=0, lPar=0
  22. #define WM_TERM_Q_SNAP WM_USER+0x103 // calculate snapped size
  23. // wPar=0, lPar=LPRECT
  24. #define WM_TERM_KEY WM_USER+0x104 // terminal key pressed
  25. // wPar=key, lPar=0
  26. #define WM_TERM_CLRATTR WM_USER+0x105 // Emulator's clear attr changed
  27. // wPar=0, lPar=0
  28. #define WM_TERM_GETLOGFONT WM_USER+0x106 // Query terminal's logfont
  29. // wPar=0, lPar=&lf
  30. #define WM_TERM_SETLOGFONT WM_USER+0x107 // Set terminal's logfont
  31. // wPar=0, lPar=&lf
  32. #define WM_TERM_Q_MARKED WM_USER+0x108 // Is text marked
  33. // wPar=0, lPar=0
  34. #define WM_TERM_UNMARK WM_USER+0x109 // Unmarks any text
  35. // wPar=0, lPar=0
  36. #define WM_TERM_TRACK WM_USER+0x10A // shift terminal to show cursor
  37. // wPar=0, lPar=0
  38. #define WM_TERM_EMU_SETTINGS WM_USER+0x10B // emulator settings have changed
  39. // wPar=0, lPar=0
  40. #define WM_TERM_Q_MARKED_RANGE WM_USER+0x10C // query marked text range
  41. // wPar=PPOINT, lPar=PPOINT
  42. #define WM_TERM_LOAD_SETTINGS WM_USER+0x10D // Read terminal settings
  43. // wPar=0, lPar=0
  44. #define WM_TERM_SAVE_SETTINGS WM_USER+0x10E // Save terminal settings
  45. // wPar=0, lPar=0
  46. #define WM_TERM_MARK_ALL WM_USER+0x10F // Mark all terminal text
  47. // wPar=0, lPar=0
  48. #define WM_TERM_FORCE_WMSIZE WM_USER+0x110 // Calls wm_size code
  49. // wPar=0, lPar=0
  50. #define WM_TERM_CLEAR_BACKSCROLL WM_USER+0x111 // Clear backscroll area
  51. #define WM_TERM_CLEAR_SCREEN WM_USER+0x112 // Clear terminal screen
  52. // Button 1 Double-click settings.
  53. #define B1_SELECTWORD 0 // Selects a word
  54. #define B1_COPYWORD 1 // Copies word or selected text to host
  55. #define B1_COPYWORDENTER 2 // Same but adds <ENTER> at end
  56. // Button 2 click settings.
  57. #define B2_CONTEXTMENU 0 // Popup context menu
  58. #define B2_HOSTCURSOR 1 // Positions host cursor
  59. #define B2_SINGLELETTER 2 // Copies single letter to host
  60. #define B2_DONOTHING 3 // disables button 2 clicks.
  61. /* --- Color table lives in terminal files --- */
  62. int GetNearestColorIndex(COLORREF cr);
  63. void RefreshTermWindow(const HWND hwndTerm);
  64. int termSetLogFont(const HWND hwndTerm, LPLOGFONT plf);
  65. int termGetLogFont(const HWND hwndTerm, LPLOGFONT plf);
  66. #endif