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.

49 lines
1.5 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. // Copyright (c) 2002 Microsoft Corporation. All rights reserved.
  3. // Copyright (c) 2002 OSR Open Systems Resources, Inc.
  4. //
  5. // ListCtrlEx.h : CListCtrl derived class
  6. //////////////////////////////////////////////////////////////////////////////
  7. #include <afxtempl.h>
  8. class CListCtrlEx : public CListCtrl
  9. {
  10. DECLARE_DYNAMIC(CListCtrlEx)
  11. public:
  12. CListCtrlEx(); // standard constructor
  13. virtual ~CListCtrlEx();
  14. int InsertItem(int nItem, LPCTSTR lpszItem, CLogSession *pLogSession);
  15. BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
  16. BOOL RedrawItems(int nFirst, int nLast);
  17. void UpdateWindow();
  18. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  19. //
  20. // Suspend updating list control items. This is used
  21. // to stop updates while CSubItemEdit/Combo instances are active
  22. // in the list control. Otherwise, the updates disrupt the
  23. // edit and combo controls.
  24. //
  25. INLINE VOID SuspendUpdates(BOOL bSuspendUpdates)
  26. {
  27. InterlockedExchange((PLONG)&m_bSuspendUpdates, (LONG)bSuspendUpdates);
  28. }
  29. public:
  30. //{{AFX_MSG(CLogSessionDlg)
  31. afx_msg void OnCustomDraw(NMHDR* pNMHDR, LRESULT* pResult);
  32. //}}AFX_MSG
  33. DECLARE_MESSAGE_MAP()
  34. CMapWordToPtr m_colorMap;
  35. COLORREF m_foreGround[MAX_LOG_SESSIONS];
  36. COLORREF m_backGround[MAX_LOG_SESSIONS];
  37. BOOL m_bSuspendUpdates;
  38. };