home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 6 / mastvb6.iso / leadtools / ocx32.lt / OCDBVIEW.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-21  |  2.0 KB  |  81 lines

  1. // ltcdbView.h : interface of the CLtcdbView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. //{{AFX_INCLUDES()
  5. #include "lead.h"
  6. //}}AFX_INCLUDES
  7.  
  8. class CLtcdbSet;
  9.  
  10. class CLtcdbView : public CDaoRecordView
  11. {
  12. protected: // create from serialization only
  13.     CLtcdbView();
  14.     DECLARE_DYNCREATE(CLtcdbView)
  15.  
  16. public:
  17.     //{{AFX_DATA(CLtcdbView)
  18.     enum { IDD = IDD_LTCDB_FORM };
  19.     CLtcdbSet* m_pSet;
  20.     CLead    m_Lead1;
  21.     //}}AFX_DATA
  22.  
  23. // Attributes
  24. public:
  25.     CLtcdbDoc* GetDocument();
  26.  
  27. // Operations
  28. public:
  29.  
  30. // Overrides
  31.     // ClassWizard generated virtual function overrides
  32.     //{{AFX_VIRTUAL(CLtcdbView)
  33.     public:
  34.     virtual CDaoRecordset* OnGetRecordset();
  35.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  36.     protected:
  37.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  38.     virtual void OnInitialUpdate(); // called first time after construct
  39.     //}}AFX_VIRTUAL
  40.  
  41. // Implementation
  42. public:
  43.     virtual ~CLtcdbView();
  44. #ifdef _DEBUG
  45.     virtual void AssertValid() const;
  46.     virtual void Dump(CDumpContext& dc) const;
  47. #endif
  48.  
  49. protected:
  50.  
  51. // Generated message map functions
  52. protected:
  53.     //{{AFX_MSG(CLtcdbView)
  54.     afx_msg void OnChangeLead1();
  55.     afx_msg void OnDestroy();
  56.     afx_msg void OnAddnew();
  57.     afx_msg void OnFlip();
  58.     afx_msg void OnDelete();
  59.     afx_msg void OnFindfirst();
  60.     afx_msg void OnFindnext();
  61.     afx_msg void OnSetfocusSearchtext();
  62.     afx_msg void OnChangeLeadctrl1();
  63.     DECLARE_EVENTSINK_MAP()
  64.     //}}AFX_MSG
  65.     DECLARE_MESSAGE_MAP()
  66.     // These variables let us synchronize the LEAD control's ODBC access with the
  67.     // the normal database access
  68.     long OldPosition, NewPosition;
  69.     // This variable lets us make the dbMove method conditional
  70.     BOOL NormalMove;
  71.     afx_msg BOOL OnQueryNewPalette();
  72.     afx_msg void OnPaletteChanged( CWnd *pwin );
  73. };
  74.  
  75. #ifndef _DEBUG  // debug version in ltcdbView.cpp
  76. inline CLtcdbDoc* CLtcdbView::GetDocument()
  77.    { return (CLtcdbDoc*)m_pDocument; }
  78. #endif
  79.  
  80. /////////////////////////////////////////////////////////////////////////////
  81.