00001 // 00002 // CtrlHomeView.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 #pragma once 00023 00024 #include "RichViewCtrl.h" 00025 #include "RichDocument.h" 00026 #include "CtrlHomeSearch.h" 00027 00028 00029 class CHomeViewCtrl : public CRichViewCtrl 00030 { 00031 // Construction 00032 public: 00033 CHomeViewCtrl(); 00034 virtual ~CHomeViewCtrl(); 00035 00036 // Attributes 00037 public: 00038 CRichDocument m_pDocument; 00039 CRichElement* m_peHeader; 00040 CRichElement* m_peSearch; 00041 CRichElement* m_peUpgrade; 00042 CRichElement* m_peRemote1; 00043 CRichElement* m_peRemote2; 00044 CHomeSearchCtrl m_wndSearch; 00045 CBitmap m_bmHeader1; 00046 CBitmap m_bmHeader2; 00047 00048 // Operations 00049 public: 00050 virtual BOOL Create(const RECT& rect, CWnd* pParentWnd); 00051 void Setup(); 00052 void Update(); 00053 protected: 00054 virtual void OnLayoutComplete(); 00055 virtual void OnPaintBegin(CDC* pDC); 00056 virtual void OnVScrolled(); 00057 00058 // Implementation 00059 protected: 00060 DECLARE_MESSAGE_MAP() 00061 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 00062 afx_msg void OnDestroy(); 00063 afx_msg void OnSetFocus(CWnd* pOldWnd); 00064 00065 00066 }; 00067 00068 #define IDC_HOME_VIEW 150 00069 #define IDC_HOME_SEARCH 151