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.

85 lines
1.4 KiB

  1. // Spewview: remote debug spew monitor
  2. //
  3. // Copyright (c) 2000 Microsoft Corp.
  4. //
  5. // Spew monitoring window: modeless dialog to capture spewage
  6. //
  7. // 16 Mar 2000 sburns
  8. #ifndef SPEWWINDOW_HPP_INCLUDED
  9. #define SPEWWINDOW_HPP_INCLUDED
  10. class SpewDialog : public Dialog
  11. {
  12. public:
  13. SpewDialog(const String& clientName, const String& appName);
  14. virtual
  15. ~SpewDialog();
  16. static const int WM_ENABLE_START = WM_USER + 202;
  17. static const int WM_UPDATE_SPEWAGE = WM_USER + 203;
  18. private:
  19. void
  20. AppendMessage(WPARAM wparam, const String& message);
  21. virtual
  22. bool
  23. OnCommand(
  24. HWND windowFrom,
  25. unsigned controlIDFrom,
  26. unsigned code);
  27. virtual
  28. void
  29. OnInit();
  30. virtual
  31. bool
  32. OnMessage(
  33. UINT message,
  34. WPARAM wparam,
  35. LPARAM lparam);
  36. void
  37. OnStartButton();
  38. void
  39. OnStopButton();
  40. void
  41. ComputeMargins();
  42. void
  43. ResizeSpewWindow(int newParentWidth, int newParentHeight);
  44. void
  45. StartReadingSpewage();
  46. void
  47. StopReadingSpewage();
  48. // not defined: no copying allowed
  49. SpewDialog(const SpewDialog&);
  50. const SpewDialog& operator=(const SpewDialog&);
  51. int spewLineCount;
  52. int textBoxLineCount;
  53. RECT margins;
  54. String clientName;
  55. String appName;
  56. bool readerThreadCreated;
  57. int endReaderThread;
  58. };
  59. #endif // SPEWWINDOW_HPP_INCLUDED