// TwainDemoView.h : interface of the CTwainDemoView class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_TWAINDEMOVIEW_H__FE8CE9FE_8FC8_410A_9A11_3CEA92AF5AB0__INCLUDED_) #define AFX_TWAINDEMOVIEW_H__FE8CE9FE_8FC8_410A_9A11_3CEA92AF5AB0__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CTwainDemoView : public CView { protected: // create from serialization only CTwainDemoView(); DECLARE_DYNCREATE(CTwainDemoView) // Attributes public: CTwainDemoDoc* GetDocument(); // Operations public: LBitmapWindow m_LeadBmpWnd; // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CTwainDemoView) public: virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual void OnInitialUpdate(); protected: virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); //}}AFX_VIRTUAL // Implementation public: virtual ~CTwainDemoView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CTwainDemoView) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnFileSave(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in TwainDemoView.cpp inline CTwainDemoDoc* CTwainDemoView::GetDocument() { return (CTwainDemoDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_TWAINDEMOVIEW_H__FE8CE9FE_8FC8_410A_9A11_3CEA92AF5AB0__INCLUDED_)