// mymfc30aView.h : interface of the CMymfc30aView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYMFC30AVIEW_H__856698BD_A201_40D4_8CD7_4A9F20DA6994__INCLUDED_)
#define AFX_MYMFC30AVIEW_H__856698BD_A201_40D4_8CD7_4A9F20DA6994__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define WM_VIEWPALETTECHANGED	WM_USER + 5

class CMymfc30aView : public CScrollView
{
    // for tracking
    CRectTracker m_tracker;
    CRect m_rectTracker; // logical coordinates
    CSize m_sizeTotal;   // document size

protected: // create from serialization only
	CMymfc30aView();
	DECLARE_DYNCREATE(CMymfc30aView)

// Attributes
public:
	CMymfc30aDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMymfc30aView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
	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 ~CMymfc30aView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMymfc30aView)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	afx_msg void OnSetFocus(CWnd* pOldWnd);
	afx_msg void OnEditCopy();
	afx_msg void OnUpdateEditCopy(CCmdUI* pCmdUI);
	afx_msg void OnEditCopyto();
	afx_msg void OnEditCut();
	afx_msg void OnEditPaste();
	afx_msg void OnUpdateEditPaste(CCmdUI* pCmdUI);
	afx_msg void OnEditPastefrom();
	//}}AFX_MSG
	afx_msg LONG OnViewPaletteChanged(UINT wParam, LONG lParam);
	DECLARE_MESSAGE_MAP()
private:
	COleDataSource* SaveDib();
	BOOL DoPasteDib(COleDataObject* pDataObject);
};

#ifndef _DEBUG  // debug version in mymfc30aView.cpp
inline CMymfc30aDoc* CMymfc30aView::GetDocument()
   { return (CMymfc30aDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MYMFC30AVIEW_H__856698BD_A201_40D4_8CD7_4A9F20DA6994__INCLUDED_)

