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.

61 lines
1.4 KiB

  1. // adsqryView.h : interface of the CAdsqryView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. class CAdsqryView : public CListView
  5. {
  6. protected: // create from serialization only
  7. CAdsqryView();
  8. DECLARE_DYNCREATE(CAdsqryView)
  9. // Attributes
  10. public:
  11. CAdsqryDoc* GetDocument();
  12. // Operations
  13. public:
  14. // Overrides
  15. // ClassWizard generated virtual function overrides
  16. //{{AFX_VIRTUAL(CAdsqryView)
  17. public:
  18. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  19. virtual void OnInitialUpdate();
  20. virtual BOOL OnChildNotify(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pLResult);
  21. //}}AFX_VIRTUAL
  22. // Implementation
  23. public:
  24. virtual ~CAdsqryView();
  25. #ifdef _DEBUG
  26. virtual void AssertValid() const;
  27. virtual void Dump(CDumpContext& dc) const;
  28. #endif
  29. // Generated message map functions
  30. protected:
  31. //{{AFX_MSG(CAdsqryView)
  32. afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  33. //}}AFX_MSG
  34. DECLARE_MESSAGE_MAP()
  35. protected:
  36. void CreateColumns ( void );
  37. void ClearContent ( void );
  38. void AddRows ( void );
  39. void AddColumns ( int nRow );
  40. protected:
  41. int m_nLastInsertedRow;
  42. int m_nColumnsCount;
  43. CStringArray m_strColumns;
  44. };
  45. #ifndef _DEBUG // debug version in adsqryView.cpp
  46. inline CAdsqryDoc* CAdsqryView::GetDocument()
  47. { return (CAdsqryDoc*)m_pDocument; }
  48. #endif
  49. /////////////////////////////////////////////////////////////////////////////