home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / general / dbvlist / empview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  2.3 KB  |  78 lines

  1. // EmpView.h : header file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #if !defined(AFX_EMPVIEW_H__1FF640C9_B507_11D0_BE98_00C04FC99F83__INCLUDED_)
  14. #define AFX_EMPVIEW_H__1FF640C9_B507_11D0_BE98_00C04FC99F83__INCLUDED_
  15.  
  16. #if _MSC_VER >= 1000
  17. #pragma once
  18. #endif // _MSC_VER >= 1000
  19.  
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CEmpView view
  22.  
  23. class CEmpView : public CListView
  24. {
  25. protected:
  26.     CEmpView();           // protected constructor used by dynamic creation
  27.     DECLARE_DYNCREATE(CEmpView)
  28.  
  29. // Attributes
  30. public:
  31.     CDBVListDoc* GetDocument();
  32.  
  33. // Operations
  34. public:
  35.     void UpdateFilter(CString strCurQuery);
  36.  
  37. // Overrides
  38.     // ClassWizard generated virtual function overrides
  39.     //{{AFX_VIRTUAL(CEmpView)
  40.     public:
  41.     virtual void OnInitialUpdate();
  42.     virtual BOOL OnChildNotify(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pLResult);
  43.     protected:
  44.     //}}AFX_VIRTUAL
  45.     void PrepareCache(int iFrom, int iTo);
  46.     void GetDispInfo(LVITEM* pItem);
  47.     int FindItem(int iStart, LVFINDINFO* plvfi);
  48.  
  49. // Implementation
  50. protected:
  51.     virtual ~CEmpView();
  52. #ifdef _DEBUG
  53.     virtual void AssertValid() const;
  54.     virtual void Dump(CDumpContext& dc) const;
  55. #endif
  56.  
  57.     // Generated message map functions
  58. protected:
  59.     //{{AFX_MSG(CEmpView)
  60.         // NOTE - the ClassWizard will add and remove member functions here.
  61.     //}}AFX_MSG
  62.     afx_msg void OnColumnClick(UINT id, NMHDR* pNotifyStruct, LRESULT* pResult);
  63.  
  64.     DECLARE_MESSAGE_MAP()
  65. };
  66.  
  67. #ifndef _DEBUG  // debug version in DBVListView.cpp
  68. inline CDBVListDoc* CEmpView::GetDocument()
  69.    { return (CDBVListDoc*)m_pDocument; }
  70. #endif
  71.  
  72. /////////////////////////////////////////////////////////////////////////////
  73.  
  74. //{{AFX_INSERT_LOCATION}}
  75. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  76.  
  77. #endif // !defined(AFX_EMPVIEW_H__1FF640C9_B507_11D0_BE98_00C04FC99F83__INCLUDED_)
  78.