www.pudn.com > elsfk.rar > elsfkDlg.h


// elsfkDlg.h : header file 
// 
 
#if !defined(AFX_ELSFKDLG_H__B4011F4A_C153_4DDA_BFE0_A3DCAFFD47DD__INCLUDED_) 
#define AFX_ELSFKDLG_H__B4011F4A_C153_4DDA_BFE0_A3DCAFFD47DD__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
///////////////////////////////////////////////////////////////////////////// 
// CElsfkDlg dialog 
#include  
class CElsfkDlg : public CDialog 
{ 
// Construction 
public: 
	void Turn(); 
	void FillArrayFun(int Type,CRect MoveRect); 
	void GetNewRect(); 
	void MoveDown(); 
	void MoveRight(); 
	void MoveLeft(); 
	void DrawRect(CPaintDC &dc,CRect rect); 
	void RemoveOneLine(); 
	CElsfkDlg(CWnd* pParent = NULL);	// standard constructor 
	 
	 
// Dialog Data 
	//{{AFX_DATA(CElsfkDlg) 
	enum { IDD = IDD_ELSFK_DIALOG }; 
		// NOTE: the ClassWizard will add data members here 
	//}}AFX_DATA 
 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CElsfkDlg) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	HICON m_hIcon; 
 
	// Generated message map functions 
	//{{AFX_MSG(CElsfkDlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags); 
	afx_msg void OnTimer(UINT nIDEvent); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
private: 
	CRect CLientRect;//客户区大小 
	int FillArray[15][12];//填充区域数组 
	BOOL IfNewRect;//是否需要产生新的图形 
	CRect *MoveRect;//代表图形中,最下边,最左边的矩形 
	CArray BottomMoveRect;//保存移动图形最底部的几个矩形 
	CArray LeftMoveRect;//保存移动图形最左边的几个矩形 
	CArray RightMoveRect;//保存移动图形最右边的几个矩形 
 
	int CurrentMoveType;//当前产生图形的序号 
	/************************************************************************/ 
	/*1. @ 2.@@@  @   3.@@  @  4.@@@   @     @  @@  5.@@@  @@  @     @ 6.  @   7.@@  @    @  @@ 
				  @         @    @     @   @@@   @      @  @   @@@   @    @@@    @   @@  @@   @ 
				  @                    @@        @         @        @@     @ 
	/************************************************************************/ 
	CArray MoveType; 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_ELSFKDLG_H__B4011F4A_C153_4DDA_BFE0_A3DCAFFD47DD__INCLUDED_)