00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #pragma once
00023
00024 #include "WndBaseMatch.h"
00025 #include "CtrlBrowseHeader.h"
00026 #include "CtrlBrowseProfile.h"
00027 #include "CtrlBrowseFrame.h"
00028
00029 class CHostBrowser;
00030 class CG2Packet;
00031
00032
00033 class CBrowseHostWnd : public CBaseMatchWnd
00034 {
00035
00036 public:
00037 CBrowseHostWnd(SOCKADDR_IN* pHost, GGUID* pClientID = NULL);
00038 CBrowseHostWnd(IN_ADDR* pAddress = NULL, WORD nPort = 0, BOOL bMustPush = FALSE, GGUID* pClientID = NULL);
00039 virtual ~CBrowseHostWnd();
00040
00041 DECLARE_DYNCREATE(CBrowseHostWnd)
00042
00043
00044 protected:
00045 CHostBrowser* m_pBrowser;
00046 CBrowseHeaderCtrl m_wndHeader;
00047 CBrowseProfileCtrl m_wndProfile;
00048 CBrowseFrameCtrl m_wndFrame;
00049 BOOL m_bOnFiles;
00050
00051
00052 public:
00053 virtual void OnSkinChange();
00054 virtual void OnProfileReceived();
00055 virtual void OnBrowseHits(CQueryHit* pHits);
00056 virtual void OnHeadPacket(CG2Packet* pPacket);
00057 virtual void OnPhysicalTree(CG2Packet* pPacket);
00058 virtual void OnVirtualTree(CG2Packet* pPacket);
00059 virtual BOOL OnPush(GGUID* pClientID, CConnection* pConnection);
00060 virtual void UpdateMessages(BOOL bActive = TRUE);
00061
00062
00063 public:
00064 virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
00065 protected:
00066 DECLARE_MESSAGE_MAP()
00067 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00068 afx_msg void OnDestroy();
00069 afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
00070 afx_msg void OnSize(UINT nType, int cx, int cy);
00071 afx_msg void OnUpdateBrowseHostStop(CCmdUI* pCmdUI);
00072 afx_msg void OnBrowseHostStop();
00073 afx_msg void OnBrowseHostRefresh();
00074 afx_msg void OnUpdateBrowseProfile(CCmdUI* pCmdUI);
00075 afx_msg void OnBrowseProfile();
00076 afx_msg void OnUpdateBrowseFiles(CCmdUI* pCmdUI);
00077 afx_msg void OnBrowseFiles();
00078 afx_msg void OnUpdateSearchChat(CCmdUI* pCmdUI);
00079 afx_msg void OnSearchChat();
00080 afx_msg void OnSelChangeMatches();
00081
00082 };