QQClientDlg.h
上传用户:hysujiao87
上传日期:2007-12-02
资源大小:156k
文件大小:2k
- // 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<CDialog*> DialogVector;
- typedef vector<CDialog*>::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_)