// mymfc26BView.h : interface of the CMymfc26BView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYMFC26BVIEW_H__5FED194F_602B_456B_8495_EE8A5B5222AD__INCLUDED_)
#define AFX_MYMFC26BVIEW_H__5FED194F_602B_456B_8495_EE8A5B5222AD__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CMymfc26BView : public CScrollView
{
protected: // create from serialization only
	CMymfc26BView();
	DECLARE_DYNCREATE(CMymfc26BView)

// Attributes
public:
	CMymfc26BDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMymfc26BView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMymfc26BView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMymfc26BView)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnPaint();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	BOOL     m_bCaptured;
    CSize    m_sizeOffset;
    CDC*     m_pdcMemory;
    CBitmap* m_pBitmap;
	CPoint m_pointTopLeft;
	const CSize m_sizeEllipse;
};

#ifndef _DEBUG  // debug version in mymfc26BView.cpp
inline CMymfc26BDoc* CMymfc26BView::GetDocument()
   { return (CMymfc26BDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MYMFC26BVIEW_H__5FED194F_602B_456B_8495_EE8A5B5222AD__INCLUDED_)

