// mymfcproView.h : interface of the CMymfcproView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYMFCPROVIEW_H__BE15154D_0538_4AFD_AA7B_C794521813E0__INCLUDED_)
#define AFX_MYMFCPROVIEW_H__BE15154D_0538_4AFD_AA7B_C794521813E0__INCLUDED_

#include "Property.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CMymfcproView : public CView
{
protected: // create from serialization only
	CMymfcproView();
	DECLARE_DYNCREATE(CMymfcproView)

// Attributes
public:
	CMymfcproDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMymfcproView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	CRichEditCtrl m_rich;
	virtual ~CMymfcproView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMymfcproView)
	afx_msg void OnTransferGetdata();
	afx_msg void OnTransferStoredata();
	afx_msg void OnUpdateTransferStoredata(CCmdUI* pCmdUI);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnFormatDefault();
	afx_msg void OnFormatSelection();
	afx_msg void OnUpdateFormatSelection(CCmdUI* pCmdUI);
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	//}}AFX_MSG
	afx_msg LRESULT OnUserApply(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()
private:
	BOOL m_bDefault;
	CFontSheet m_sh;

private:	
	void Format(CHARFORMAT &cf);
};

#ifndef _DEBUG  // debug version in mymfcproView.cpp
inline CMymfcproDoc* CMymfcproView::GetDocument()
   { return (CMymfcproDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MYMFCPROVIEW_H__BE15154D_0538_4AFD_AA7B_C794521813E0__INCLUDED_)

