Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

WndNeighbours.h

Go to the documentation of this file.
00001 //
00002 // WndNeighbours.h
00003 //
00004 // Copyright (c) Shareaza Development Team, 2002-2005.
00005 // This file is part of SHAREAZA (www.shareaza.com)
00006 //
00007 // Shareaza is free software; you can redistribute it
00008 // and/or modify it under the terms of the GNU General Public License
00009 // as published by the Free Software Foundation; either version 2 of
00010 // the License, or (at your option) any later version.
00011 //
00012 // Shareaza is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 // GNU General Public License for more details.
00016 //
00017 // You should have received a copy of the GNU General Public License
00018 // along with Shareaza; if not, write to the Free Software
00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
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 // Construction
00037 public:
00038         CNeighboursWnd();
00039         virtual ~CNeighboursWnd();
00040 
00041         DECLARE_SERIAL(CNeighboursWnd)
00042 
00043 // Attributes
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 // Operations
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 // Overrides
00061 public:
00062         //{{AFX_VIRTUAL(CNeighboursWnd)
00063         public:
00064         virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
00065         //}}AFX_VIRTUAL
00066 
00067 // Implementation
00068 protected:
00069         //{{AFX_MSG(CNeighboursWnd)
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         //}}AFX_MSG
00096         DECLARE_MESSAGE_MAP()
00097 };
00098 
00099 #define IDC_NEIGHBOURS  100
00100 
00101 //{{AFX_INSERT_LOCATION}}
00102 
00103 #endif // !defined(AFX_WNDNEIGHBOURS_H__C3F579F1_50F6_40F8_9A98_2A14ED05A9CC__INCLUDED_)

Generated on Thu Dec 15 10:39:53 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2