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.

83 lines
3.0 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. // Copyright (c) 2002 Microsoft Corporation. All rights reserved.
  3. // Copyright (c) 2002 OSR Open Systems Resources, Inc.
  4. //
  5. // LogSessionDialog.h : header for logger list dialog
  6. //////////////////////////////////////////////////////////////////////////////
  7. #pragma once
  8. // CLogSessionDlg dialog
  9. class CLogSessionDlg : public CDialog
  10. {
  11. DECLARE_DYNAMIC(CLogSessionDlg)
  12. public:
  13. CLogSessionDlg(CWnd* pParent = NULL); // standard constructor
  14. virtual ~CLogSessionDlg();
  15. //int CLogSessionDlg::Create(UINT nIDTemplate, CWnd *pParentWnd = NULL);
  16. BOOL OnInitDialog();
  17. void OnNcPaint();
  18. void OnWindowPosChanged(WINDOWPOS FAR* lpwndpos);
  19. //void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp);
  20. void OnSize(UINT nType, int cx,int cy);
  21. void SetDisplayFlags(LONG DisplayFlags);
  22. BOOL SetItemText(int nItem, int nSubItem, LPCTSTR lpszText);
  23. BOOL AssignDisplayWnd(CLogSession *pLogSession);
  24. VOID ReleaseDisplayWnd(CLogSession *pLogSession);
  25. VOID UpdateSession(CLogSession *pLogSession);
  26. BOOL AddSession(CLogSession *pLogSession);
  27. VOID RemoveSession(CLogSession *pLogSession);
  28. VOID RemoveSelectedLogSessions();
  29. VOID GroupSessions(CPtrArray *pLogSessionArray);
  30. VOID UnGroupSessions(CPtrArray *pLogSessionArray);
  31. void AutoSizeColumns();
  32. LONG GetDisplayWndID();
  33. VOID ReleaseDisplayWndID(CDisplayDlg *pDisplayDlg);
  34. LONG GetLogSessionID();
  35. VOID ReleaseLogSessionID(CLogSession *pLogSession);
  36. static void EndTraceComplete(PVOID pContext);
  37. LRESULT OnParameterChanged(WPARAM wParam, LPARAM lParam);
  38. INLINE LONG GetDisplayFlags()
  39. {
  40. return m_displayFlags;
  41. }
  42. // Dialog Data
  43. enum { IDD = IDD_DISPLAY_DIALOG };
  44. CListCtrlEx m_displayCtrl;
  45. CPtrArray m_logSessionArray;
  46. LONG m_displayFlags;
  47. CStringArray m_columnName;
  48. LONG m_columnWidth[MaxLogSessionOptions];
  49. int m_insertionArray[MaxLogSessionOptions + 1];
  50. int m_retrievalArray[MaxLogSessionOptions + 1];
  51. CPtrArray m_traceDisplayWndArray;
  52. LONG m_logSessionDisplayFlags;
  53. HANDLE m_hParameterChangeEvent;
  54. BOOL m_displayWndIDList[MAX_LOG_SESSIONS];
  55. BOOL m_logSessionIDList[MAX_LOG_SESSIONS];
  56. HWND m_hMainFrame;
  57. HANDLE m_traceDisplayWndMutex;
  58. HANDLE m_logSessionArrayMutex;
  59. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  60. public:
  61. //{{AFX_MSG(CLogSessionDlg)
  62. afx_msg void OnNMClickDisplayList(NMHDR *pNMHDR, LRESULT *pResult);
  63. afx_msg void OnNMRclickDisplayList(NMHDR *pNMHDR, LRESULT *pResult);
  64. afx_msg void OnHDNRclickDisplayList(NMHDR *pNMHDR, LRESULT *pResult);
  65. afx_msg void OnCustomDraw(NMHDR* pNMHDR, LRESULT* pResult);
  66. //}}AFX_MSG
  67. DECLARE_MESSAGE_MAP()
  68. virtual BOOL PreTranslateMessage(MSG* pMsg);
  69. };