www.pudn.com > goodchessGame.zip > FloorDialog.h


#if !defined(AFX_FLOORDIALOG_H__A21038FE_A77F_43D5_B8DF_A66A503A92EA__INCLUDED_) 
#define AFX_FLOORDIALOG_H__A21038FE_A77F_43D5_B8DF_A66A503A92EA__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// FloorDialog.h : header file 
// 
#include "Resource.h" 
#include "afxwin.h" 
#include "Pakage.h" 
 
#define MARGIN 20; 
 
///////////////////////////////////////////////////////////////////////////// 
// CFloorDialog dialog 
 
struct ThrownCardStruct 
{ 
	CBitmap s_Bitmap; 
	int s_PlayerID; 
}; 
 
struct StatBool 
{ 
	BOOL s_Bool; 
	int s_PlayerID; 
}; 
 
class CFloorDialog : public CDialog 
{ 
// Construction 
public: 
	CFloorDialog(CWnd* pParent = NULL);   // standard constructor 
	virtual ~CFloorDialog(); 
 
// Dialog Data 
	//{{AFX_DATA(CFloorDialog) 
	enum { IDD = IDD_FLOORDIALOG }; 
	CSliderCtrl	m_SliderCtrl; 
	//}}AFX_DATA 
 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CFloorDialog) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
 
	// Generated message map functions 
	//{{AFX_MSG(CFloorDialog) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnReleasedcaptureSlider(NMHDR* pNMHDR, LRESULT* pResult); 
	virtual void OnCancel(); 
	//}}AFX_MSG 
 
	LRESULT OnGetDefID(WPARAM wp, LPARAM lp); 
	 
	DECLARE_MESSAGE_MAP() 
	virtual void PostNcDestroy(); 
public: 
	CEdit m_EditMsgBox; 
	void AddMessage(DataPacket &dp); 
 
	CTypedPtrList m_PlayerList; 
	CTypedPtrList m_ThrownCardList; 
	CTypedPtrList m_BoolList; 
	void AddThrownCard(CPlayer *pPlayer, int BitmapIndex); 
	void ShowStat(CPlayer *pPlayer, BOOL bDrawn); 
	void SetStartingPoints(int nNumOfPlayers); 
	void CleanUp() 
	{ 
		delete [] m_pStartPoints; 
		m_pStartPoints = NULL; 
	} 
	void Refresh(); 
	afx_msg void OnPaint(); 
protected: 
	int m_nNumOfPlayers; 
	CPoint * m_pStartPoints; 
	OSVERSIONINFO  m_VersionInfo; 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_FLOORDIALOG_H__A21038FE_A77F_43D5_B8DF_A66A503A92EA__INCLUDED_)