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.
|
|
//////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2002 Microsoft Corporation. All rights reserved.
// Copyright (c) 2002 OSR Open Systems Resources, Inc.
//
// LogSessionDialog.h : header for logger list dialog
//////////////////////////////////////////////////////////////////////////////
#pragma once
// CLogSessionDlg dialog
class CLogSessionDlg : public CDialog { DECLARE_DYNAMIC(CLogSessionDlg)
public: CLogSessionDlg(CWnd* pParent = NULL); // standard constructor
virtual ~CLogSessionDlg();
//int CLogSessionDlg::Create(UINT nIDTemplate, CWnd *pParentWnd = NULL);
BOOL OnInitDialog(); void OnNcPaint(); void OnWindowPosChanged(WINDOWPOS FAR* lpwndpos); //void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp);
void OnSize(UINT nType, int cx,int cy); void SetDisplayFlags(LONG DisplayFlags); BOOL SetItemText(int nItem, int nSubItem, LPCTSTR lpszText); BOOL AssignDisplayWnd(CLogSession *pLogSession); VOID ReleaseDisplayWnd(CLogSession *pLogSession); VOID UpdateSession(CLogSession *pLogSession); BOOL AddSession(CLogSession *pLogSession); VOID RemoveSession(CLogSession *pLogSession); VOID RemoveSelectedLogSessions(); VOID GroupSessions(CPtrArray *pLogSessionArray); VOID UnGroupSessions(CPtrArray *pLogSessionArray); void AutoSizeColumns(); LONG GetDisplayWndID(); VOID ReleaseDisplayWndID(CDisplayDlg *pDisplayDlg); LONG GetLogSessionID(); VOID ReleaseLogSessionID(CLogSession *pLogSession);
static void EndTraceComplete(PVOID pContext);
LRESULT OnParameterChanged(WPARAM wParam, LPARAM lParam);
INLINE LONG GetDisplayFlags() { return m_displayFlags; }
// Dialog Data
enum { IDD = IDD_DISPLAY_DIALOG };
CListCtrlEx m_displayCtrl; CPtrArray m_logSessionArray; LONG m_displayFlags; CStringArray m_columnName; LONG m_columnWidth[MaxLogSessionOptions]; int m_insertionArray[MaxLogSessionOptions + 1]; int m_retrievalArray[MaxLogSessionOptions + 1]; CPtrArray m_traceDisplayWndArray; LONG m_logSessionDisplayFlags; HANDLE m_hParameterChangeEvent; BOOL m_displayWndIDList[MAX_LOG_SESSIONS]; BOOL m_logSessionIDList[MAX_LOG_SESSIONS]; HWND m_hMainFrame; HANDLE m_traceDisplayWndMutex; HANDLE m_logSessionArrayMutex;
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
public: //{{AFX_MSG(CLogSessionDlg)
afx_msg void OnNMClickDisplayList(NMHDR *pNMHDR, LRESULT *pResult); afx_msg void OnNMRclickDisplayList(NMHDR *pNMHDR, LRESULT *pResult); afx_msg void OnHDNRclickDisplayList(NMHDR *pNMHDR, LRESULT *pResult); afx_msg void OnCustomDraw(NMHDR* pNMHDR, LRESULT* pResult); //}}AFX_MSG
DECLARE_MESSAGE_MAP() virtual BOOL PreTranslateMessage(MSG* pMsg); };
|