00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #if !defined(AFX_WNDNEIGHBOURS_H__C3F579F1_50F6_40F8_9A98_2A14ED05A9CC__INCLUDED_)
00023 #define AFX_WNDNEIGHBOURS_H__C3F579F1_50F6_40F8_9A98_2A14ED05A9CC__INCLUDED_
00024
00025 #pragma once
00026
00027 #include "WndPanel.h"
00028 #include "CtrlTipList.h"
00029 #include "CtrlNeighbourTip.h"
00030
00031 class CNeighbour;
00032
00033
00034 class CNeighboursWnd : public CPanelWnd
00035 {
00036
00037 public:
00038 CNeighboursWnd();
00039 virtual ~CNeighboursWnd();
00040
00041 DECLARE_SERIAL(CNeighboursWnd)
00042
00043
00044 protected:
00045 CCoolBarCtrl m_wndToolBar;
00046 CTipListCtrl m_wndList;
00047 CNeighbourTipCtrl m_wndTip;
00048 CImageList m_gdiImageList;
00049 CLiveListSizer m_pSizer;
00050 DWORD m_tLastUpdate;
00051
00052
00053 public:
00054 void Update();
00055 CNeighbour* GetItem(int nItem);
00056 void OpenPacketWnd(BOOL bIncoming, BOOL bOutgoing);
00057 void DrawEmptyMessage(CDC* pDC);
00058 virtual void OnSkinChange();
00059
00060
00061 public:
00062
00063 public:
00064 virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
00065
00066
00067
00068 protected:
00069
00070 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00071 afx_msg void OnSize(UINT nType, int cx, int cy);
00072 afx_msg void OnTimer(UINT nIDEvent);
00073 afx_msg void OnSortList(NMHDR* pNotifyStruct, LRESULT *pResult);
00074 afx_msg void OnCustomDrawList(NMHDR* pNMHDR, LRESULT* pResult);
00075 afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
00076 afx_msg void OnUpdateNeighboursDisconnect(CCmdUI* pCmdUI);
00077 afx_msg void OnNeighboursDisconnect();
00078 afx_msg void OnUpdateNeighboursViewAll(CCmdUI* pCmdUI);
00079 afx_msg void OnNeighboursViewAll();
00080 afx_msg void OnUpdateNeighboursViewIncoming(CCmdUI* pCmdUI);
00081 afx_msg void OnNeighboursViewIncoming();
00082 afx_msg void OnUpdateNeighboursViewOutgoing(CCmdUI* pCmdUI);
00083 afx_msg void OnNeighboursViewOutgoing();
00084 afx_msg void OnDestroy();
00085 afx_msg void OnUpdateNeighboursChat(CCmdUI* pCmdUI);
00086 afx_msg void OnNeighboursChat();
00087 afx_msg void OnUpdateSecurityBan(CCmdUI* pCmdUI);
00088 afx_msg void OnSecurityBan();
00089 afx_msg void OnUpdateBrowseLaunch(CCmdUI* pCmdUI);
00090 afx_msg void OnBrowseLaunch();
00091 afx_msg void OnUpdateNeighboursCopy(CCmdUI* pCmdUI);
00092 afx_msg void OnNeighboursCopy();
00093 afx_msg void OnNeighboursSettings();
00094 afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
00095
00096 DECLARE_MESSAGE_MAP()
00097 };
00098
00099 #define IDC_NEIGHBOURS 100
00100
00101
00102
00103 #endif // !defined(AFX_WNDNEIGHBOURS_H__C3F579F1_50F6_40F8_9A98_2A14ED05A9CC__INCLUDED_)