// ltcdbView.h : interface of the CLtcdbView class // ///////////////////////////////////////////////////////////////////////////// //{{AFX_INCLUDES() #include "leadrasterview.h" //}}AFX_INCLUDES #ifndef _CLtcdbView_ #define _CLtcdbView_ 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; CLEADRasterView m_RasterView; //}}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); virtual void OnInitialUpdate(); protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView); //}}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: void Unlocksupport(); //{{AFX_MSG(CLtcdbView) 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 OnDestroy(); afx_msg void OnUpdateRecordFirst(CCmdUI* pCmdUI); afx_msg void OnUpdateRecordLast(CCmdUI* pCmdUI); afx_msg void OnUpdateRecordNext(CCmdUI* pCmdUI); afx_msg void OnUpdateRecordPrev(CCmdUI* pCmdUI); afx_msg void OnChangeLeadrasterview1(long nChange, long nReserved1, long nReserved2); DECLARE_EVENTSINK_MAP() //}}AFX_MSG DECLARE_MESSAGE_MAP() public: CRasterODBCSink *m_pRasterODBCSink; IConnectionPoint *m_pCP; DWORD m_dwCookie; // 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; LRESULT OnDoRealize(WPARAM wParam, LPARAM lParam); void InitAnnotation(); }; #ifndef _DEBUG // debug version in ltcdbView.cpp inline CLtcdbDoc* CLtcdbView::GetDocument() { return (CLtcdbDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// #endif