00001 // 00002 // CtrlBrowseProfile.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_CTRLBROWSEPROFILE_H__AB5BA2FC_D09C_4A55_A73E_B44179AFA245__INCLUDED_) 00023 #define AFX_CTRLBROWSEPROFILE_H__AB5BA2FC_D09C_4A55_A73E_B44179AFA245__INCLUDED_ 00024 00025 #pragma once 00026 00027 #include "RichViewCtrl.h" 00028 00029 class CHostBrowser; 00030 class CGProfile; 00031 class CG2Packet; 00032 00033 00034 class CBrowseProfileCtrl : public CWnd 00035 { 00036 // Construction 00037 public: 00038 CBrowseProfileCtrl(); 00039 virtual ~CBrowseProfileCtrl(); 00040 00041 // Attributes 00042 protected: 00043 CCriticalSection m_pSection; 00044 CRichViewCtrl m_wndDoc1; 00045 CRichDocument* m_pDocument1; 00046 CRichElement* m_pdNick; 00047 CRichElement* m_pdFullName; 00048 CRichElement* m_pdFullLocation; 00049 CRichElement* m_pdGenderMale; 00050 CRichElement* m_pdGenderFemale; 00051 CRichElement* m_pdAge; 00052 CRichElement* m_pdContactEmail; 00053 CRichElement* m_pdContactMSN; 00054 CRichElement* m_pdContactYahoo; 00055 CRichElement* m_pdContactICQ; 00056 CRichElement* m_pdContactAOL; 00057 CRichElement* m_pdContactJabber; 00058 CRichElement* m_pdBioText; 00059 CRichElement* m_pdInterests; 00060 protected: 00061 CRichViewCtrl m_wndDoc2; 00062 CRichDocument* m_pDocument2; 00063 CRichElement* m_pdBookmarks; 00064 protected: 00065 CBitmap m_bmHead; 00066 00067 // Operations 00068 public: 00069 void OnSkinChange(); 00070 void Update(CHostBrowser* pBrowser); 00071 void OnHeadPacket(CG2Packet* pPacket); 00072 protected: 00073 void UpdateDocument1(CGProfile* pProfile); 00074 void UpdateDocument2(CHostBrowser* pBrowser); 00075 void LoadDefaultHead(); 00076 00077 // Overrides 00078 public: 00079 //{{AFX_VIRTUAL(CBrowseProfileCtrl) 00080 virtual BOOL Create(CWnd* pParentWnd); 00081 //}}AFX_VIRTUAL 00082 00083 // Implementation 00084 protected: 00085 //{{AFX_MSG(CBrowseProfileCtrl) 00086 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 00087 afx_msg void OnDestroy(); 00088 afx_msg void OnSize(UINT nType, int cx, int cy); 00089 afx_msg void OnPaint(); 00090 afx_msg void OnTimer(UINT nIDEvent); 00091 afx_msg void OnClickView(RVN_ELEMENTEVENT* pNotify, LRESULT *pResult); 00092 //}}AFX_MSG 00093 00094 DECLARE_MESSAGE_MAP() 00095 00096 }; 00097 00098 //{{AFX_INSERT_LOCATION}} 00099 00100 #define IDC_BROWSE_PROFILE 124 00101 00102 #endif // !defined(AFX_CTRLBROWSEPROFILE_H__AB5BA2FC_D09C_4A55_A73E_B44179AFA245__INCLUDED_)