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

  1. // schemaView.h : interface of the CSchemaView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CSchemaView : public CView
  6. {
  7. protected: // create from serialization only
  8.     CSchemaView();
  9.     DECLARE_DYNCREATE(CSchemaView)
  10.  
  11. // Attributes
  12. public:
  13.     BOOL CopyArrayData(CDaoRecordset& rs, CByteArray& ba, BOOL bToArray);    
  14.  
  15.     CString GetField1Name();
  16.     CString GetField2Name();
  17.     CString GetField3Name();
  18.     CString GetDefaultTableName();
  19.     CString GetDefaultDBName();
  20.     CSchemaDoc* GetDocument();
  21.  
  22. // Operations
  23. public:
  24.  
  25. // Overrides
  26.     // ClassWizard generated virtual function overrides
  27.     //{{AFX_VIRTUAL(CSchemaView)
  28.     public:
  29.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  30.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  31.     protected:
  32.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  33.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  34.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  35.     //}}AFX_VIRTUAL
  36.  
  37. // Implementation
  38. public:
  39.     virtual ~CSchemaView();
  40. #ifdef _DEBUG
  41.     virtual void AssertValid() const;
  42.     virtual void Dump(CDumpContext& dc) const;
  43. #endif
  44.  
  45. protected:
  46.  
  47. // Generated message map functions
  48. protected:
  49.     //{{AFX_MSG(CSchemaView)
  50.     afx_msg void OnSchemaDatabase();
  51.     afx_msg void OnSchemaTable();
  52.     afx_msg void OnSchemaAddrecord();
  53.     //}}AFX_MSG
  54.     DECLARE_MESSAGE_MAP()
  55. };
  56.  
  57. #ifndef _DEBUG  // debug version in schemaView.cpp
  58. inline CSchemaDoc* CSchemaView::GetDocument()
  59.    { return (CSchemaDoc*)m_pDocument; }
  60. #endif
  61.  
  62. /////////////////////////////////////////////////////////////////////////////
  63.