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

  1. // extdatView.h : interface of the CExtdatView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CExtdatView : public CView
  6. {
  7. protected: // create from serialization only
  8.     CExtdatView();
  9.     DECLARE_DYNCREATE(CExtdatView)
  10.  
  11. // Attributes
  12. public:
  13.     CString GetDefaultDBName();
  14.     CString GetDefaultDirectory();
  15.     CString GetISAMName();
  16.     CString GetFWTextName();
  17.     CString GetCDTextName();
  18.  
  19.     CExtdatDoc* GetDocument();
  20.  
  21. // Operations
  22. public:
  23.  
  24. // Overrides
  25.     // ClassWizard generated virtual function overrides
  26.     //{{AFX_VIRTUAL(CExtdatView)
  27.     public:
  28.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  29.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  30.     protected:
  31.     //}}AFX_VIRTUAL
  32.  
  33. // Implementation
  34. public:
  35.     virtual ~CExtdatView();
  36. #ifdef _DEBUG
  37.     virtual void AssertValid() const;
  38.     virtual void Dump(CDumpContext& dc) const;
  39. #endif
  40.  
  41. protected:
  42.  
  43. // Generated message map functions
  44. protected:
  45.     //{{AFX_MSG(CExtdatView)
  46.     afx_msg void OnExternalLinkDBase();
  47.     afx_msg void OnExternalCDtext();
  48.     afx_msg void OnExternalLinkFWtext();
  49.     afx_msg void OnExternalOpenFWText();
  50.     afx_msg void OnExternalOpenCDText();
  51.     afx_msg void OnExternalOpenDBase();
  52.     //}}AFX_MSG
  53.     DECLARE_MESSAGE_MAP()
  54. };
  55.  
  56. #ifndef _DEBUG  // debug version in extdatView.cpp
  57. inline CExtdatDoc* CExtdatView::GetDocument()
  58.    { return (CExtdatDoc*)m_pDocument; }
  59. #endif
  60.  
  61. /////////////////////////////////////////////////////////////////////////////
  62.