www.pudn.com > QQ2004_Source_0.01.rar > QQClientDlg.h


// QQClientDlg.h : header file 
// 
 
#if !defined(AFX_QQCLIENTDLG_H__FA4709C9_8CE4_11D6_9C0E_0080C8F72DA3__INCLUDED_) 
#define AFX_QQCLIENTDLG_H__FA4709C9_8CE4_11D6_9C0E_0080C8F72DA3__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "friendlist.h" 
#include "Communication.h" 
#include "PeerComm.h" 
 
#include "GfxOutBarCtrl.h" 
 
typedef vector DialogVector; 
typedef vector::iterator DialogIterator; 
 
///////////////////////////////////////////////////////////////////////////// 
// CQQClientDlg dialog 
class CQQClientDlg : public CDialog 
{ 
// Construction 
public: 
	CQQClientDlg(LPCTSTR serverIP, CWnd* pParent = NULL);	// standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(CQQClientDlg) 
	enum { IDD = IDD_QQCLIENT }; 
	//}}AFX_DATA 
 
	CString _userID; 
	CString _nickname; 
	CString _serverIP; 
 
	CPeerComm _comm; 
	CImageList _headIconList; 
 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CQQClientDlg) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	HICON m_hIcon; 
 
	CFriendList _friendList; 
	DialogVector _dialogVector; 
 
	CGfxOutBarCtrl _obFriendList; 
	// Generated message map functions 
	//{{AFX_MSG(CQQClientDlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	afx_msg void OnBtnAddFriend(); 
	afx_msg void OnDestroy(); 
	afx_msg LRESULT OnListenNotify(WPARAM wParam, LPARAM lParam); 
	afx_msg LRESULT OnSenddlgClosed(WPARAM wParam, LPARAM lParam); 
	afx_msg LRESULT OnOutbarNotify(WPARAM wParam, LPARAM lParam); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
 
	HRESULT sendMessageToFriend(int index); 
 
	void initFriendList(void); 
	void clear(void); 
 
	HRESULT queryUser(CString userID, CFriendData &friendData); 
	HRESULT downloadFriends(); 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_QQCLIENTDLG_H__FA4709C9_8CE4_11D6_9C0E_0080C8F72DA3__INCLUDED_)