www.pudn.com > 图形界面聊天软件.rar > UserInfo.h


#if !defined(AFX_USERINFO_H__7C2F7DF2_3869_48D9_9246_F9866D25EB80__INCLUDED_) 
#define AFX_USERINFO_H__7C2F7DF2_3869_48D9_9246_F9866D25EB80__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// UserInfo.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CUserInfo window 
#define PX(x,y) (32*(x+y-12)-27) 
#define PY(x,y) (16*(y-x+12)-74) 
#define IPY(x,y) (((x+27)/32+(y+74)/16)/2) 
#define IPX(x,y) (12+((x+27)/64-(y+74)/32)/2) 
 
class CUserInfo : public CWnd 
{ 
// Construction 
public: 
	CUserInfo(CWnd *pWnd); 
 
// Attributes 
public: 
	CString m_Name; 
	UINT m_pic; 
	CString m_sen; 
	UINT m_state; 
	UINT m_x; 
	UINT m_y; 
	UINT m_nPort; 
	UINT m_ID; 
	UINT m_MsgCount; 
	int m_iAniSeq; 
	int m_PicNum; 
	CRect m_Place; 
	CArray m_ComArray; 
	CRect m_SenPlace; 
	CPicWnd * m_pPW; 
	CBmpProc m_SenPic; 
	BOOL m_bSet; 
	CString m_Sex; 
	CString m_Address; 
	CMap m_MapMsg; 
	CString m_ICQ; 
	CString m_Job; 
	UINT m_nAge; 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CUserInfo) 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	void MsgCreate(mpack & Msgpack); 
	BOOL Check(UINT num); 
	HRGN GetRgn(); 
	int m_SingleBMP; 
	BOOL m_bSelect; 
	BOOL m_bTurn; 
	int m_Visit; 
	CWnd * m_pWnd; 
	CString m_IP; 
	BOOL m_bSit; 
	POSITION m_SenPos; 
	void DoSingleCom(); 
	void DoSay(); 
	void DoWalk(); 
	void DoSet(); 
	void ShowUser(); 
	virtual ~CUserInfo(); 
 
	// Generated message map functions 
protected: 
	//{{AFX_MSG(CUserInfo) 
	afx_msg void OnTimer(UINT nIDEvent); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_USERINFO_H__7C2F7DF2_3869_48D9_9246_F9866D25EB80__INCLUDED_)