home *** CD-ROM | disk | FTP | other *** search
- // ltcdbView.h : interface of the CLtcdbView class
- //
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INCLUDES()
- #include "lead.h"
- //}}AFX_INCLUDES
-
- class CLtcdbSet;
-
- class CLtcdbView : public CDaoRecordView
- {
- protected: // create from serialization only
- CLtcdbView();
- DECLARE_DYNCREATE(CLtcdbView)
-
- public:
- //{{AFX_DATA(CLtcdbView)
- enum { IDD = IDD_LTCDB_FORM };
- CLtcdbSet* m_pSet;
- CLead m_Lead1;
- //}}AFX_DATA
-
- // Attributes
- public:
- CLtcdbDoc* GetDocument();
-
- // Operations
- public:
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CLtcdbView)
- public:
- virtual CDaoRecordset* OnGetRecordset();
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- virtual void OnInitialUpdate(); // called first time after construct
- //}}AFX_VIRTUAL
-
- // Implementation
- public:
- virtual ~CLtcdbView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
-
- protected:
-
- // Generated message map functions
- protected:
- //{{AFX_MSG(CLtcdbView)
- afx_msg void OnChangeLead1();
- afx_msg void OnDestroy();
- afx_msg void OnAddnew();
- afx_msg void OnFlip();
- afx_msg void OnDelete();
- afx_msg void OnFindfirst();
- afx_msg void OnFindnext();
- afx_msg void OnSetfocusSearchtext();
- afx_msg void OnChangeLeadctrl1();
- DECLARE_EVENTSINK_MAP()
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- // These variables let us synchronize the LEAD control's ODBC access with the
- // the normal database access
- long OldPosition, NewPosition;
- // This variable lets us make the dbMove method conditional
- BOOL NormalMove;
- afx_msg BOOL OnQueryNewPalette();
- afx_msg void OnPaletteChanged( CWnd *pwin );
- };
-
- #ifndef _DEBUG // debug version in ltcdbView.cpp
- inline CLtcdbDoc* CLtcdbView::GetDocument()
- { return (CLtcdbDoc*)m_pDocument; }
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
-