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.

74 lines
1.6 KiB

  1. //***************************************************************************
  2. //
  3. // LOGVIEW.H
  4. //
  5. // Module: NLB Manager (client-side exe)
  6. //
  7. // Purpose: View of a log of events.
  8. //
  9. // Copyright (c)2001 Microsoft Corporation, All Rights Reserved
  10. //
  11. // History:
  12. //
  13. // 08/03/01 JosephJ Adapted from now defunct RightBottomView
  14. //
  15. //***************************************************************************
  16. #pragma once
  17. #include "stdafx.h"
  18. #include "Document.h"
  19. // class LogView : public CEditView
  20. class LogView : public CListView
  21. {
  22. DECLARE_DYNCREATE( LogView )
  23. public:
  24. virtual void OnInitialUpdate();
  25. LogView();
  26. ~LogView();
  27. void
  28. Deinitialize(void);
  29. //
  30. // Log a message in human-readable form.
  31. //
  32. void
  33. LogString(
  34. IN const IUICallbacks::LogEntryHeader *pHeader,
  35. IN const wchar_t *szText
  36. );
  37. //
  38. // Called to indicate that deinitialization will soon follow.
  39. // After return from this call, the the log view will ignore
  40. // any new log entires (LogString will become a no-op).
  41. //
  42. void
  43. PrepareToDeinitialize(void)
  44. {
  45. m_fPrepareToDeinitialize = TRUE;
  46. }
  47. protected:
  48. Document* GetDocument();
  49. //message handlers
  50. afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags );
  51. afx_msg void OnDoubleClick( NMHDR* pNMHDR, LRESULT* pResult );
  52. CRITICAL_SECTION m_crit;
  53. BOOL m_fPrepareToDeinitialize;
  54. void mfn_Lock(void);
  55. void mfn_Unlock(void) {LeaveCriticalSection(&m_crit);}
  56. void mfn_DisplayDetails(int index);
  57. DECLARE_MESSAGE_MAP()
  58. };