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

CBrowseHeaderCtrl Class Reference

#include <CtrlBrowseHeader.h>

Inheritance diagram for CBrowseHeaderCtrl:

CCoolBarCtrl List of all members.

Public Member Functions

 CBrowseHeaderCtrl ()
virtual ~CBrowseHeaderCtrl ()
void Update (CHostBrowser *pBrowser)
void OnSkinChange ()
virtual BOOL Create (CWnd *pParentWnd)

Protected Member Functions

virtual void PrepareRect (CRect *pRect) const
virtual void DoPaint (CDC *pDC, CRect &rcBar, BOOL bTransparent)
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnSize (UINT nType, int cx, int cy)

Protected Attributes

CString m_sTitle
CString m_sIntro
int m_nIcon32
int m_nIcon48

Constructor & Destructor Documentation

CBrowseHeaderCtrl::CBrowseHeaderCtrl  ) 
 

Definition at line 52 of file CtrlBrowseHeader.cpp.

CBrowseHeaderCtrl::~CBrowseHeaderCtrl  )  [virtual]
 

Definition at line 57 of file CtrlBrowseHeader.cpp.


Member Function Documentation

BOOL CBrowseHeaderCtrl::Create CWnd *  pParentWnd  )  [virtual]
 

Definition at line 64 of file CtrlBrowseHeader.cpp.

References IDC_BROWSE_HEADER, and NULL.

Referenced by CBrowseHostWnd::OnCreate().

void CBrowseHeaderCtrl::DoPaint CDC *  pDC,
CRect &  rcBar,
BOOL  bTransparent
[protected, virtual]
 

Reimplemented from CCoolBarCtrl.

Definition at line 166 of file CtrlBrowseHeader.cpp.

References CoolInterface, CCoolBarCtrl::DoPaint(), CShellIcons::Draw(), CCoolInterface::DrawWatermark(), CSkin::DrawWrappedText(), CCoolBarCtrl::m_bmImage, CSkin::m_crBannerBack, CSkin::m_crBannerText, CCoolBarCtrl::m_czLast, CCoolInterface::m_fntCaption, CCoolInterface::m_fntNormal, m_nIcon32, m_nIcon48, m_sIntro, m_sTitle, NULL, ShellIcons, and Skin.

int CBrowseHeaderCtrl::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Reimplemented from CCoolBarCtrl.

Definition at line 122 of file CtrlBrowseHeader.cpp.

References CSchemaCache::Get(), m_nIcon32, m_nIcon48, OnSkinChange(), SchemaCache, and CSchema::uriLibrary.

void CBrowseHeaderCtrl::OnSize UINT  nType,
int  cx,
int  cy
[protected]
 

Definition at line 137 of file CtrlBrowseHeader.cpp.

void CBrowseHeaderCtrl::OnSkinChange  ) 
 

Definition at line 143 of file CtrlBrowseHeader.cpp.

References CSkin::CreateToolBar(), IDB_BANNER_MARK, CCoolBarCtrl::m_bmImage, CSkin::m_crBannerBack, NULL, and Skin.

Referenced by OnCreate(), and CBrowseHostWnd::OnSkinChange().

void CBrowseHeaderCtrl::PrepareRect CRect *  pRect  )  const [protected, virtual]
 

Reimplemented from CCoolBarCtrl.

Definition at line 154 of file CtrlBrowseHeader.cpp.

References CCoolBarCtrl::m_czLast, and CCoolBarCtrl::PrepareRect().

void CBrowseHeaderCtrl::Update CHostBrowser pBrowser  ) 
 

Definition at line 71 of file CtrlBrowseHeader.cpp.

References CGProfile::GetNick(), CHostBrowser::GetProgress(), IDS_BROWSE_INTRO_FORMAT, IDS_BROWSE_TITLE_FORMAT, CGProfile::IsValid(), LoadString(), CHostBrowser::m_nHits, CHostBrowser::m_pAddress, CHostBrowser::m_pProfile, m_sIntro, and m_sTitle.

Referenced by CBrowseHostWnd::UpdateMessages().


Member Data Documentation

int CBrowseHeaderCtrl::m_nIcon32 [protected]
 

Definition at line 43 of file CtrlBrowseHeader.h.

Referenced by DoPaint(), and OnCreate().

int CBrowseHeaderCtrl::m_nIcon48 [protected]
 

Definition at line 44 of file CtrlBrowseHeader.h.

Referenced by DoPaint(), and OnCreate().

CString CBrowseHeaderCtrl::m_sIntro [protected]
 

Definition at line 42 of file CtrlBrowseHeader.h.

Referenced by DoPaint(), and Update().

CString CBrowseHeaderCtrl::m_sTitle [protected]
 

Definition at line 41 of file CtrlBrowseHeader.h.

Referenced by DoPaint(), and Update().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:04 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2