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

CTaskPanel Class Reference

#include <CtrlTaskPanel.h>

Inheritance diagram for CTaskPanel:

CHomePanel CSearchPanel List of all members.

Public Member Functions

 CTaskPanel ()
virtual ~CTaskPanel ()
CTaskBoxAddBox (CTaskBox *pBox, POSITION posBefore=NULL)
POSITION GetBoxIterator () const
CTaskBoxGetNextBox (POSITION &pos) const
int GetBoxCount () const
void RemoveBox (CTaskBox *pBox)
void ClearBoxes (BOOL bDelete)
void SetStretchBox (CTaskBox *pBox)
void SetMargin (int nMargin, int nCurve=2)
void SetWatermark (HBITMAP hBitmap)
void SetFooter (HBITMAP hBitmap, BOOL bDefault=TRUE)
void OnChanged ()
virtual BOOL Create (DWORD dwStyle, const RECT &rect, CWnd *pParentWnd, UINT nID)

Protected Member Functions

void Layout (CRect &rcClient)
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnPaint ()
afx_msg BOOL OnEraseBkgnd (CDC *pDC)
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)

Protected Attributes

CPtrList m_pBoxes
CTaskBoxm_pStretch
int m_nMargin
int m_nCurve
CBitmap m_bmWatermark
CBitmap m_bmFooter
BOOL m_bLayout

Friends

class CTaskBox

Constructor & Destructor Documentation

CTaskPanel::CTaskPanel  ) 
 

Definition at line 67 of file CtrlTaskPanel.cpp.

References NULL.

CTaskPanel::~CTaskPanel  )  [virtual]
 

Definition at line 75 of file CtrlTaskPanel.cpp.


Member Function Documentation

CTaskBox * CTaskPanel::AddBox CTaskBox pBox,
POSITION  posBefore = NULL
 

Definition at line 91 of file CtrlTaskPanel.cpp.

References m_pBoxes, NULL, and OnChanged().

Referenced by CSearchPanel::OnCreate(), and CHomePanel::OnCreate().

void CTaskPanel::ClearBoxes BOOL  bDelete  ) 
 

Definition at line 135 of file CtrlTaskPanel.cpp.

References GetBoxIterator(), GetNextBox(), m_pBoxes, m_pStretch, NULL, and OnChanged().

BOOL CTaskPanel::Create DWORD  dwStyle,
const RECT &  rect,
CWnd *  pParentWnd,
UINT  nID
[virtual]
 

Definition at line 82 of file CtrlTaskPanel.cpp.

References NULL.

Referenced by CSearchPanel::Create(), CHomePanel::Create(), and CHelpWnd::OnCreate().

int CTaskPanel::GetBoxCount  )  const
 

Definition at line 118 of file CtrlTaskPanel.cpp.

References m_pBoxes.

POSITION CTaskPanel::GetBoxIterator  )  const
 

Definition at line 108 of file CtrlTaskPanel.cpp.

References m_pBoxes.

Referenced by ClearBoxes(), and Layout().

CTaskBox * CTaskPanel::GetNextBox POSITION &  pos  )  const
 

Definition at line 113 of file CtrlTaskPanel.cpp.

References m_pBoxes.

Referenced by ClearBoxes(), and Layout().

void CTaskPanel::Layout CRect &  rcClient  )  [protected]
 

Definition at line 233 of file CtrlTaskPanel.cpp.

References CAPTION_HEIGHT, GetBoxIterator(), GetNextBox(), CTaskBox::GetOuterHeight(), m_bLayout, CTaskBox::m_bOpen, CTaskBox::m_bVisible, CTaskBox::m_nHeight, m_nMargin, m_pStretch, and NULL.

Referenced by OnPaint().

void CTaskPanel::OnChanged  ) 
 

Definition at line 227 of file CtrlTaskPanel.cpp.

References m_bLayout.

Referenced by AddBox(), ClearBoxes(), CTaskBox::Expand(), and RemoveBox().

int CTaskPanel::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Reimplemented in CHomePanel, and CSearchPanel.

Definition at line 178 of file CtrlTaskPanel.cpp.

Referenced by CSearchPanel::OnCreate(), and CHomePanel::OnCreate().

BOOL CTaskPanel::OnEraseBkgnd CDC *  pDC  )  [protected]
 

Definition at line 196 of file CtrlTaskPanel.cpp.

void CTaskPanel::OnPaint  )  [protected]
 

Definition at line 201 of file CtrlTaskPanel.cpp.

References CoolInterface, CCoolInterface::DrawWatermark(), Layout(), m_bLayout, m_bmFooter, m_bmWatermark, CCoolInterface::m_crTaskPanelBack, and NULL.

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

Definition at line 185 of file CtrlTaskPanel.cpp.

References CTaskBox::GetOuterHeight(), m_bLayout, m_pStretch, and NULL.

void CTaskPanel::RemoveBox CTaskBox pBox  ) 
 

Definition at line 123 of file CtrlTaskPanel.cpp.

References m_pBoxes, m_pStretch, NULL, and OnChanged().

void CTaskPanel::SetFooter HBITMAP  hBitmap,
BOOL  bDefault = TRUE
 

Definition at line 165 of file CtrlTaskPanel.cpp.

References CoolInterface, IDB_TASKPANEL_FOOTER, m_bmFooter, CCoolInterface::m_crTaskPanelBack, and NULL.

Referenced by CSearchPanel::OnSkinChange(), and CHomePanel::Setup().

void CTaskPanel::SetMargin int  nMargin,
int  nCurve = 2
 

Definition at line 153 of file CtrlTaskPanel.cpp.

References m_nCurve, and m_nMargin.

void CTaskPanel::SetStretchBox CTaskBox pBox  ) 
 

Definition at line 148 of file CtrlTaskPanel.cpp.

References m_pStretch.

Referenced by CSearchPanel::OnCreate().

void CTaskPanel::SetWatermark HBITMAP  hBitmap  ) 
 

Definition at line 159 of file CtrlTaskPanel.cpp.

References m_bmWatermark, and NULL.

Referenced by CSearchPanel::OnSkinChange(), and CHomePanel::Setup().


Friends And Related Function Documentation

friend class CTaskBox [friend]
 

Definition at line 83 of file CtrlTaskPanel.h.


Member Data Documentation

BOOL CTaskPanel::m_bLayout [protected]
 

Definition at line 47 of file CtrlTaskPanel.h.

Referenced by Layout(), OnChanged(), OnPaint(), and OnSize().

CBitmap CTaskPanel::m_bmFooter [protected]
 

Definition at line 46 of file CtrlTaskPanel.h.

Referenced by OnPaint(), and SetFooter().

CBitmap CTaskPanel::m_bmWatermark [protected]
 

Definition at line 45 of file CtrlTaskPanel.h.

Referenced by OnPaint(), and SetWatermark().

int CTaskPanel::m_nCurve [protected]
 

Definition at line 44 of file CtrlTaskPanel.h.

Referenced by CTaskBox::PaintBorders(), and SetMargin().

int CTaskPanel::m_nMargin [protected]
 

Definition at line 43 of file CtrlTaskPanel.h.

Referenced by CTaskBox::Create(), Layout(), and SetMargin().

CPtrList CTaskPanel::m_pBoxes [protected]
 

Definition at line 41 of file CtrlTaskPanel.h.

Referenced by AddBox(), ClearBoxes(), GetBoxCount(), GetBoxIterator(), GetNextBox(), and RemoveBox().

CTaskBox* CTaskPanel::m_pStretch [protected]
 

Definition at line 42 of file CtrlTaskPanel.h.

Referenced by ClearBoxes(), Layout(), OnSize(), RemoveBox(), and SetStretchBox().


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