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_WNDPACKET_H__83132A9A_A3A0_4850_A3D9_DCF825D2F273__INCLUDED_)
00023 #define AFX_WNDPACKET_H__83132A9A_A3A0_4850_A3D9_DCF825D2F273__INCLUDED_
00024
00025 #pragma once
00026
00027 #include "WndPanel.h"
00028
00029 class CNeighbour;
00030 class CPacket;
00031 class CCoolMenu;
00032
00033
00034 class CPacketWnd : public CPanelWnd
00035 {
00036
00037 public:
00038 CPacketWnd(CChildWnd* pOwner = NULL);
00039 virtual ~CPacketWnd();
00040
00041 DECLARE_SERIAL(CPacketWnd)
00042
00043
00044 public:
00045 CChildWnd* m_pOwner;
00046 DWORD m_nInputFilter;
00047 DWORD m_nOutputFilter;
00048 BOOL m_bTypeG1[16];
00049 BOOL m_bTypeG2[64];
00050 BOOL m_bPaused;
00051 protected:
00052 CListCtrl m_wndList;
00053 CLiveListSizer m_pSizer;
00054 CFont m_pFont;
00055 CCoolMenu* m_pCoolMenu;
00056 CPtrList m_pQueue;
00057 CCriticalSection m_pSection;
00058
00059 static LPCSTR m_pszG2[];
00060
00061
00062 public:
00063 void Process(const CNeighbour* pNeighbour, const IN_ADDR* pUDP, BOOL bOutgoing, const CPacket* pPacket);
00064 void OnSkinChange();
00065 protected:
00066 void AddNeighbour(CMenu* pMenus, int nGroup, UINT nID, DWORD nTarget, LPCTSTR pszText);
00067
00068
00069 public:
00070
00071
00072
00073
00074 protected:
00075
00076 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00077 afx_msg void OnSize(UINT nType, int cx, int cy);
00078 afx_msg void OnCustomDrawList(NMHDR* pNMHDR, LRESULT* pResult);
00079 afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
00080 afx_msg void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct);
00081 afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
00082 afx_msg void OnUpdateSystemClear(CCmdUI* pCmdUI);
00083 afx_msg void OnDestroy();
00084 afx_msg void OnTimer(UINT nIDEvent);
00085
00086 afx_msg void OnUpdateBlocker(CCmdUI* pCmdUI);
00087 DECLARE_MESSAGE_MAP()
00088
00089 };
00090
00091
00092
00093 #define IDC_PACKETS 100
00094
00095 #endif // !defined(AFX_WNDPACKET_H__83132A9A_A3A0_4850_A3D9_DCF825D2F273__INCLUDED_)