home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c10 / query / queryview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.8 KB  |  71 lines

  1. // QueryView.h : interface of the CQueryView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_QUERYVIEW_H__47DD6DAC_62DE_11D0_9F76_00AA00680BB3__INCLUDED_)
  6. #define AFX_QUERYVIEW_H__47DD6DAC_62DE_11D0_9F76_00AA00680BB3__INCLUDED_
  7.  
  8. class CQueryView : public CScrollView
  9. {
  10. protected: // create from serialization only
  11.     CQueryView();
  12.     DECLARE_DYNCREATE(CQueryView)
  13.  
  14. // Attributes
  15. public:
  16.     CQueryDoc* GetDocument();
  17.  
  18. // Operations
  19. public:
  20.  
  21. // Overrides
  22.     // ClassWizard generated virtual function overrides
  23.     //{{AFX_VIRTUAL(CQueryView)
  24.     public:
  25.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  26.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  27.     protected:
  28.     virtual void OnInitialUpdate(); // called first time after construct
  29.     //}}AFX_VIRTUAL
  30.  
  31. // Implementation
  32. public:
  33.     CString GetDefaultDBName();
  34.     CDaoDatabase m_db;
  35.     CStringArray m_strings;
  36.     virtual ~CQueryView();
  37.     double m_EastLongitude;
  38.     double m_NorthLatitude;
  39.     double m_SouthLatitude;
  40.     double m_WestLongitude;
  41.  
  42. #ifdef _DEBUG
  43.     virtual void AssertValid() const;
  44.     virtual void Dump(CDumpContext& dc) const;
  45. #endif
  46.  
  47. protected:
  48.  
  49. // Generated message map functions
  50. protected:
  51.     //{{AFX_MSG(CQueryView)
  52.     afx_msg void OnViewClear();
  53.     afx_msg void OnViewDynamicQuery();
  54.     afx_msg void OnViewStoredQuery();
  55.     afx_msg void OnViewLatlon();
  56.     //}}AFX_MSG
  57.     DECLARE_MESSAGE_MAP()
  58. };
  59.  
  60. #ifndef _DEBUG  // debug version in QueryView.cpp
  61. inline CQueryDoc* CQueryView::GetDocument()
  62.    { return (CQueryDoc*)m_pDocument; }
  63. #endif
  64.  
  65. /////////////////////////////////////////////////////////////////////////////
  66.  
  67. //{{AFX_INSERT_LOCATION}}
  68. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  69.  
  70. #endif // !defined(AFX_QUERYVIEW_H__47DD6DAC_62DE_11D0_9F76_00AA00680BB3__INCLUDED_)
  71.