Source code of Windows XP (NT5)
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.

112 lines
2.0 KiB

  1. #if !defined( _SECTOR_EDIT_ )
  2. #define _SECTOR_EDIT_
  3. #include "vscroll.hxx"
  4. DECLARE_CLASS( SECTOR_EDIT );
  5. class SECTOR_EDIT : public VERTICAL_TEXT_SCROLL {
  6. public:
  7. NONVIRTUAL
  8. SECTOR_EDIT(
  9. ) {};
  10. VIRTUAL
  11. BOOLEAN
  12. Initialize(
  13. IN HWND WindowHandle,
  14. IN INT ClientHeight,
  15. IN INT ClientWidth,
  16. IN PLOG_IO_DP_DRIVE Drive
  17. );
  18. VIRTUAL
  19. VOID
  20. SetBuf(
  21. IN HWND WindowHandle,
  22. IN OUT PVOID Buffer,
  23. IN ULONG Size DEFAULT 0
  24. );
  25. VIRTUAL
  26. VOID
  27. Paint(
  28. IN HDC DeviceContext,
  29. IN RECT InvalidRect,
  30. IN HWND WindowHandle
  31. );
  32. VIRTUAL
  33. VOID
  34. Click(
  35. IN HWND WindowHandle,
  36. IN INT Xcoordinate,
  37. IN INT Ycoordinate
  38. );
  39. VIRTUAL
  40. VOID
  41. KeyUp(
  42. IN HWND WindowHandle
  43. );
  44. VIRTUAL
  45. VOID
  46. KeyDown(
  47. IN HWND WindowHandle
  48. );
  49. VIRTUAL
  50. VOID
  51. KeyLeft(
  52. IN HWND WindowHandle
  53. );
  54. VIRTUAL
  55. VOID
  56. KeyRight(
  57. IN HWND WindowHandle
  58. );
  59. VIRTUAL
  60. VOID
  61. Character(
  62. IN HWND WindowHandle,
  63. IN CHAR Char
  64. );
  65. VIRTUAL
  66. VOID
  67. SetFocus(
  68. IN HWND WindowHandle
  69. );
  70. VIRTUAL
  71. VOID
  72. KillFocus(
  73. IN HWND WindowHandle
  74. );
  75. private:
  76. NONVIRTUAL
  77. VOID
  78. SetCaretToNibble(
  79. );
  80. NONVIRTUAL
  81. VOID
  82. InvalidateNibbleRect(
  83. IN HWND WindowHandle
  84. );
  85. PVOID _buffer;
  86. ULONG _size;
  87. ULONG _edit_nibble;
  88. };
  89. #endif