// MfcKatsunariView.h : CMfcKatsunariView クラスの宣言およびインターフェイスの定義をします。
//
/////////////////////////////////////////////////////////////////////////////

class CMfcKatsunariView : public CView
{
protected: // シリアライズ機能のみから作成します。
	CMfcKatsunariView();
	DECLARE_DYNCREATE(CMfcKatsunariView)

// アトリビュート
public:
	CMfcKatsunariDoc* GetDocument();
	int m_OpeningAnimation;
	bool IsDisplayLarge;
	int boardSize;
	int pureBoardSize;
// オペレーション
public:

// オーバーライド
	// ClassWizard は仮想関数を生成しオーバーライドします。
	//{{AFX_VIRTUAL(CMfcKatsunariView)
	public:
	virtual void OnDraw(CDC* pDC);  // このビューを描画する際にオーバーライドされます。
	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);
	virtual void OnUpdate(/*CView* pSender, */LPARAM lHint, CObject* pHint);
	//}}AFX_VIRTUAL

// インプリメンテーション
public:
	virtual ~CMfcKatsunariView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	CBitmap m_Bmp;
	int m_BmpWidth,m_BmpHeight;
	CBitmap m_BoardBmp[2];
	int m_MessagePos;
	CRect m_MsgAreaRect[2];

	int oldx,oldy;
// 生成されたメッセージ マップ関数
protected:
	//{{AFX_MSG(CMfcKatsunariView)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	afx_msg LRESULT OnInitialLoaded(WPARAM w,LPARAM l);
	afx_msg LRESULT OnNextMove(WPARAM w,LPARAM l);
	afx_msg LRESULT OnKatsunariMessage(WPARAM w,LPARAM l);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnDispLarge();
	afx_msg void OnUpdateDispLarge(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // MfcKatsunariView.cpp ファイルがデバッグ環境の時使用されます。
inline CMfcKatsunariDoc* CMfcKatsunariView::GetDocument()
   { return (CMfcKatsunariDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

