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.

73 lines
2.1 KiB

  1. // ncbrowseView.h : interface of the CNcbrowseView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_NCBROWSEVIEW_H__CE6A4E4A_2AB4_4140_8879_7EF2DE7163F9__INCLUDED_)
  5. #define AFX_NCBROWSEVIEW_H__CE6A4E4A_2AB4_4140_8879_7EF2DE7163F9__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CNcbrowseView : public CListView
  10. {
  11. protected: // create from serialization only
  12. CNcbrowseView();
  13. DECLARE_DYNCREATE(CNcbrowseView)
  14. // Attributes
  15. public:
  16. CNcbrowseDoc* GetDocument();
  17. DWORD dwCurrentItems;
  18. DWORD m_dwOldThreadColWidth;
  19. DWORD m_dwOldTagColWidth;
  20. // Operations
  21. public:
  22. // Overrides
  23. // ClassWizard generated virtual function overrides
  24. //{{AFX_VIRTUAL(CNcbrowseView)
  25. public:
  26. virtual void OnDraw(CDC* pDC); // overridden to draw this view
  27. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  28. protected:
  29. virtual void OnInitialUpdate(); // called first time after construct
  30. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  31. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  32. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  33. //}}AFX_VIRTUAL
  34. // Implementation
  35. public:
  36. void UpdateInfo(DWORD dwProcThread, LPCTSTR pszFilter);
  37. virtual ~CNcbrowseView();
  38. #ifdef _DEBUG
  39. virtual void AssertValid() const;
  40. virtual void Dump(CDumpContext& dc) const;
  41. #endif
  42. protected:
  43. // Generated message map functions
  44. protected:
  45. //{{AFX_MSG(CNcbrowseView)
  46. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  47. afx_msg void OnItemchanged(NMHDR* pNMHDR, LRESULT* pResult);
  48. afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
  49. //}}AFX_MSG
  50. afx_msg void OnStyleChanged(int nStyleType, LPSTYLESTRUCT lpStyleStruct);
  51. DECLARE_MESSAGE_MAP()
  52. };
  53. #ifndef _DEBUG // debug version in ncbrowseView.cpp
  54. inline CNcbrowseDoc* CNcbrowseView::GetDocument()
  55. { return (CNcbrowseDoc*)m_pDocument; }
  56. #endif
  57. /////////////////////////////////////////////////////////////////////////////
  58. //{{AFX_INSERT_LOCATION}}
  59. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  60. #endif // !defined(AFX_NCBROWSEVIEW_H__CE6A4E4A_2AB4_4140_8879_7EF2DE7163F9__INCLUDED_)