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

CLibraryHeaderBar Class Reference

#include <CtrlLibraryHeaderBar.h>

Inheritance diagram for CLibraryHeaderBar:

CCoolBarCtrl List of all members.

Public Member Functions

 CLibraryHeaderBar ()
virtual ~CLibraryHeaderBar ()
void Update (CLibraryView *pView)

Protected Member Functions

virtual void PrepareRect (CRect *pRect) const
virtual void DoPaint (CDC *pDC, CRect &rcBar, BOOL bTransparent)
void PaintHeader (CDC *pDC, CRect &rcBar, BOOL bTransparent)
afx_msg void OnLibraryView ()
afx_msg void OnMeasureItem (int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct)
afx_msg void OnDrawItem (int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct)
afx_msg void OnMenuSelect (UINT nItemID, UINT nFlags, HMENU hSysMenu)
afx_msg void OnEnterIdle (UINT nWhy, CWnd *pWho)

Protected Attributes

CLibraryViewm_pLastView
int m_nImage
CString m_sTitle
CCoolMenum_pCoolMenu

Constructor & Destructor Documentation

CLibraryHeaderBar::CLibraryHeaderBar  ) 
 

Definition at line 55 of file CtrlLibraryHeaderBar.cpp.

References NULL.

CLibraryHeaderBar::~CLibraryHeaderBar  )  [virtual]
 

Definition at line 62 of file CtrlLibraryHeaderBar.cpp.


Member Function Documentation

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

Reimplemented from CCoolBarCtrl.

Definition at line 112 of file CtrlLibraryHeaderBar.cpp.

References CCoolBarCtrl::DoPaint(), CCoolBarCtrl::m_czLast, and PaintHeader().

void CLibraryHeaderBar::OnDrawItem int  nIDCtl,
LPDRAWITEMSTRUCT  lpDrawItemStruct
[protected]
 

Definition at line 241 of file CtrlLibraryHeaderBar.cpp.

References m_pCoolMenu, and CCoolMenu::OnDrawItem().

void CLibraryHeaderBar::OnEnterIdle UINT  nWhy,
CWnd *  pWho
[protected]
 

Definition at line 251 of file CtrlLibraryHeaderBar.cpp.

void CLibraryHeaderBar::OnLibraryView  )  [protected]
 

Definition at line 192 of file CtrlLibraryHeaderBar.cpp.

References CCoolMenu::AddMenu(), CSkin::GetWatermark(), ID_LIBRARY_VIEW, CSkin::LoadString(), CLibraryView::m_bAvailable, CLibraryView::m_nCommandID, m_pCoolMenu, m_pLastView, CLibraryFrame::m_pViews, NULL, CLibraryFrame::SetView(), CCoolMenu::SetWatermark(), Skin, and CCoolBarCtrl::ThrowMenu().

void CLibraryHeaderBar::OnMeasureItem int  nIDCtl,
LPMEASUREITEMSTRUCT  lpMeasureItemStruct
[protected]
 

Definition at line 236 of file CtrlLibraryHeaderBar.cpp.

References m_pCoolMenu, and CCoolMenu::OnMeasureItem().

void CLibraryHeaderBar::OnMenuSelect UINT  nItemID,
UINT  nFlags,
HMENU  hSysMenu
[protected]
 

Definition at line 246 of file CtrlLibraryHeaderBar.cpp.

void CLibraryHeaderBar::PaintHeader CDC *  pDC,
CRect &  rcBar,
BOOL  bTransparent
[protected]
 

Definition at line 128 of file CtrlLibraryHeaderBar.cpp.

References CoolInterface, CShellIcons::GetHandle(), CCoolInterface::m_crCmdText, CCoolInterface::m_crMidtone, CCoolInterface::m_fntBold, m_nImage, m_sTitle, NULL, and ShellIcons.

Referenced by DoPaint().

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

Reimplemented from CCoolBarCtrl.

Definition at line 103 of file CtrlLibraryHeaderBar.cpp.

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

void CLibraryHeaderBar::Update CLibraryView pView  ) 
 

Definition at line 69 of file CtrlLibraryHeaderBar.cpp.

References CLibraryView::GetHeaderContent(), CCoolBarCtrl::GetID(), ID_LIBRARY_VIEW, CSkin::LoadString(), CLibraryView::m_nCommandID, m_nImage, m_pLastView, m_sTitle, NULL, CCoolBarCtrl::OnUpdated(), SHI_FOLDER_CLOSED, and Skin.

Referenced by CLibraryFrame::SetView().


Member Data Documentation

int CLibraryHeaderBar::m_nImage [protected]
 

Definition at line 45 of file CtrlLibraryHeaderBar.h.

Referenced by PaintHeader(), and Update().

CCoolMenu* CLibraryHeaderBar::m_pCoolMenu [protected]
 

Definition at line 48 of file CtrlLibraryHeaderBar.h.

Referenced by OnDrawItem(), OnLibraryView(), and OnMeasureItem().

CLibraryView* CLibraryHeaderBar::m_pLastView [protected]
 

Definition at line 44 of file CtrlLibraryHeaderBar.h.

Referenced by OnLibraryView(), and Update().

CString CLibraryHeaderBar::m_sTitle [protected]
 

Definition at line 46 of file CtrlLibraryHeaderBar.h.

Referenced by PaintHeader(), and Update().


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