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

CTaskBox Class Reference

#include <CtrlTaskPanel.h>

Inheritance diagram for CTaskBox:

CRichTaskBox CSearchAdvancedBox CSearchInputBox CSearchResultsBox CSearchSchemaBox CHomeConnectionBox CHomeDownloadsBox CHomeLibraryBox CHomeTorrentsBox CHomeUploadsBox List of all members.

Public Member Functions

 CTaskBox ()
virtual ~CTaskBox ()
CTaskPanelGetPanel () const
void SetCaption (LPCTSTR pszCaption)
void SetIcon (HICON hIcon, BOOL bDelete=FALSE)
void SetSize (int nHeight)
void SetPrimary (BOOL bPrimary=TRUE)
void SetWatermark (HBITMAP hBitmap)
void SetCaptionmark (HBITMAP hBitmap, BOOL bDefault=TRUE)
void Expand (BOOL bOpen=TRUE)
virtual BOOL Create (CTaskPanel *pPanel, int nHeight=0, LPCTSTR pszCaption=NULL, UINT nIDIcon=0)

Protected Member Functions

int GetOuterHeight () const
void PaintBorders ()
void InvalidateNonclient ()
virtual void OnExpanded (BOOL bOpen)
afx_msg void OnNcCalcSize (BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR *lpncsp)
afx_msg void OnNcPaint ()
afx_msg UINT OnNcHitTest (CPoint point)
afx_msg BOOL OnNcActivate (BOOL bActive)
afx_msg void OnPaint ()
afx_msg void OnSysCommand (UINT nID, LPARAM lParam)
afx_msg BOOL OnSetCursor (CWnd *pWnd, UINT nHitTest, UINT message)
afx_msg void OnNcLButtonUp (UINT nHitTest, CPoint point)
afx_msg void OnTimer (UINT nIDEvent)
afx_msg void OnNcLButtonDown (UINT nHitTest, CPoint point)

Protected Attributes

CBitmap m_bmWatermark
CBitmap m_bmCaptionmark
BOOL m_bCaptionCurve

Private Attributes

CTaskPanelm_pPanel
int m_nHeight
BOOL m_bVisible
BOOL m_bOpen
BOOL m_bHover
BOOL m_bPrimary
HICON m_hIcon
BOOL m_bIconDel

Friends

class CTaskPanel

Constructor & Destructor Documentation

CTaskBox::CTaskBox  ) 
 

Definition at line 287 of file CtrlTaskPanel.cpp.

References m_bCaptionCurve, m_bHover, m_bIconDel, m_bOpen, m_bPrimary, m_bVisible, m_hIcon, m_nHeight, m_pPanel, and NULL.

CTaskBox::~CTaskBox  )  [virtual]
 

Definition at line 300 of file CtrlTaskPanel.cpp.

References m_bIconDel, and m_hIcon.


Member Function Documentation

BOOL CTaskBox::Create CTaskPanel pPanel,
int  nHeight = 0,
LPCTSTR  pszCaption = NULL,
UINT  nIDIcon = 0
[virtual]
 

Definition at line 308 of file CtrlTaskPanel.cpp.

References CreateMirroredIcon(), m_bOpen, CShareazaApp::m_bRTL, m_hIcon, m_nHeight, CTaskPanel::m_nMargin, m_pPanel, NULL, and theApp.

Referenced by CRichTaskBox::Create(), and CSearchPanel::OnCreate().

void CTaskBox::Expand BOOL  bOpen = TRUE  ) 
 

Definition at line 409 of file CtrlTaskPanel.cpp.

References InvalidateNonclient(), m_bOpen, m_pPanel, NULL, CTaskPanel::OnChanged(), OnExpanded(), and theApp.

Referenced by CSearchResultsBox::CSearchResultsBox(), and OnNcLButtonUp().

int CTaskBox::GetOuterHeight  )  const [protected]
 

Definition at line 431 of file CtrlTaskPanel.cpp.

References CAPTION_HEIGHT, m_bOpen, m_bVisible, and m_nHeight.

Referenced by CTaskPanel::Layout(), and CTaskPanel::OnSize().

CTaskPanel * CTaskBox::GetPanel  )  const
 

Definition at line 340 of file CtrlTaskPanel.cpp.

References m_pPanel, and NULL.

Referenced by CRichTaskBox::OnCreate(), CSearchInputBox::OnSearchStart(), CSearchInputBox::OnSearchStop(), and CSearchInputBox::OnSelChangeSchemas().

void CTaskBox::InvalidateNonclient  )  [protected]
 

Definition at line 584 of file CtrlTaskPanel.cpp.

References CAPTION_HEIGHT, and NULL.

Referenced by Expand(), SetCaption(), and SetIcon().

void CTaskBox::OnExpanded BOOL  bOpen  )  [protected, virtual]
 

Reimplemented in CSearchResultsBox.

Definition at line 427 of file CtrlTaskPanel.cpp.

Referenced by Expand().

BOOL CTaskBox::OnNcActivate BOOL  bActive  )  [protected]
 

Definition at line 504 of file CtrlTaskPanel.cpp.

References PaintBorders().

void CTaskBox::OnNcCalcSize BOOL  bCalcValidRects,
NCCALCSIZE_PARAMS FAR *  lpncsp
[protected]
 

Definition at line 440 of file CtrlTaskPanel.cpp.

References CAPTION_HEIGHT.

UINT CTaskBox::OnNcHitTest CPoint  point  )  [protected]
 

Definition at line 450 of file CtrlTaskPanel.cpp.

References CAPTION_HEIGHT.

Referenced by OnTimer().

void CTaskBox::OnNcLButtonDown UINT  nHitTest,
CPoint  point
[protected]
 

Definition at line 482 of file CtrlTaskPanel.cpp.

void CTaskBox::OnNcLButtonUp UINT  nHitTest,
CPoint  point
[protected]
 

Definition at line 486 of file CtrlTaskPanel.cpp.

References Expand(), and m_bOpen.

void CTaskBox::OnNcPaint  )  [protected]
 

Definition at line 510 of file CtrlTaskPanel.cpp.

References PaintBorders().

void CTaskBox::OnPaint  )  [protected]
 

Reimplemented in CHomeDownloadsBox, CHomeLibraryBox, CSearchInputBox, CSearchAdvancedBox, and CSearchResultsBox.

Definition at line 596 of file CtrlTaskPanel.cpp.

References CoolInterface, CCoolInterface::DrawWatermark(), m_bmWatermark, and CCoolInterface::m_crTaskBoxClient.

BOOL CTaskBox::OnSetCursor CWnd *  pWnd,
UINT  nHitTest,
UINT  message
[protected]
 

Reimplemented in CHomeDownloadsBox, and CHomeLibraryBox.

Definition at line 464 of file CtrlTaskPanel.cpp.

References IDC_HAND, m_bHover, NULL, PaintBorders(), and theApp.

Referenced by CHomeLibraryBox::OnSetCursor(), and CHomeDownloadsBox::OnSetCursor().

void CTaskBox::OnSysCommand UINT  nID,
LPARAM  lParam
[protected]
 

Definition at line 609 of file CtrlTaskPanel.cpp.

void CTaskBox::OnTimer UINT  nIDEvent  )  [protected]
 

Reimplemented in CHomeDownloadsBox, and CHomeLibraryBox.

Definition at line 491 of file CtrlTaskPanel.cpp.

References m_bHover, OnNcHitTest(), and PaintBorders().

Referenced by CHomeLibraryBox::OnTimer(), and CHomeDownloadsBox::OnTimer().

void CTaskBox::PaintBorders  )  [protected]
 

Definition at line 515 of file CtrlTaskPanel.cpp.

References CAPTION_HEIGHT, CoolInterface, CCoolInterface::DrawWatermark(), CCoolInterface::GetBuffer(), m_bCaptionCurve, m_bHover, m_bmCaptionmark, m_bOpen, m_bPrimary, CCoolInterface::m_crTaskBoxCaptionBack, CCoolInterface::m_crTaskBoxCaptionHover, CCoolInterface::m_crTaskBoxCaptionText, CCoolInterface::m_crTaskBoxPrimaryBack, CCoolInterface::m_crTaskBoxPrimaryText, CCoolInterface::m_crTaskPanelBack, CShareazaApp::m_gdiFontBold, CTaskPanel::m_nCurve, m_pPanel, NULL, and theApp.

Referenced by OnNcActivate(), OnNcPaint(), OnSetCursor(), and OnTimer().

void CTaskBox::SetCaption LPCTSTR  pszCaption  ) 
 

Definition at line 347 of file CtrlTaskPanel.cpp.

References InvalidateNonclient().

Referenced by CSearchPanel::OnSchemaChange(), CSearchPanel::OnSkinChange(), CHomeTorrentsBox::Setup(), CHomeConnectionBox::Setup(), CHomeUploadsBox::Setup(), CHomeLibraryBox::Setup(), and CHomeDownloadsBox::Setup().

void CTaskBox::SetCaptionmark HBITMAP  hBitmap,
BOOL  bDefault = TRUE
 

Definition at line 390 of file CtrlTaskPanel.cpp.

References CoolInterface, IDB_TASKBOX_CAPTION, m_bCaptionCurve, m_bmCaptionmark, m_bPrimary, CCoolInterface::m_crTaskBoxPrimaryBack, and NULL.

Referenced by CSearchPanel::OnSkinChange(), CHomeTorrentsBox::Setup(), CHomeConnectionBox::Setup(), CHomeUploadsBox::Setup(), CHomeLibraryBox::Setup(), and CHomeDownloadsBox::Setup().

void CTaskBox::SetIcon HICON  hIcon,
BOOL  bDelete = FALSE
 

Definition at line 359 of file CtrlTaskPanel.cpp.

References InvalidateNonclient(), m_bIconDel, and m_hIcon.

Referenced by CSearchPanel::OnSchemaChange().

void CTaskBox::SetPrimary BOOL  bPrimary = TRUE  ) 
 

Definition at line 377 of file CtrlTaskPanel.cpp.

References m_bPrimary, and m_pPanel.

Referenced by CHomeConnectionBox::CHomeConnectionBox(), CHomeDownloadsBox::CHomeDownloadsBox(), CHomeLibraryBox::CHomeLibraryBox(), CHomeTorrentsBox::CHomeTorrentsBox(), CHomeUploadsBox::CHomeUploadsBox(), and CSearchInputBox::OnCreate().

void CTaskBox::SetSize int  nHeight  ) 
 

Definition at line 370 of file CtrlTaskPanel.cpp.

References m_nHeight, and m_pPanel.

Referenced by CSearchPanel::OnSchemaChange(), CRichTaskBox::OnSize(), CHomeLibraryBox::OnSize(), CHomeDownloadsBox::OnSize(), CRichTaskBox::Update(), CHomeLibraryBox::Update(), and CHomeDownloadsBox::Update().

void CTaskBox::SetWatermark HBITMAP  hBitmap  ) 
 

Definition at line 384 of file CtrlTaskPanel.cpp.

References m_bmWatermark, and NULL.

Referenced by CSearchPanel::OnSkinChange().


Friends And Related Function Documentation

friend class CTaskPanel [friend]
 

Definition at line 151 of file CtrlTaskPanel.h.


Member Data Documentation

BOOL CTaskBox::m_bCaptionCurve [protected]
 

Definition at line 109 of file CtrlTaskPanel.h.

Referenced by CTaskBox(), PaintBorders(), and SetCaptionmark().

BOOL CTaskBox::m_bHover [private]
 

Definition at line 102 of file CtrlTaskPanel.h.

Referenced by CTaskBox(), OnSetCursor(), OnTimer(), and PaintBorders().

BOOL CTaskBox::m_bIconDel [private]
 

Definition at line 105 of file CtrlTaskPanel.h.

Referenced by CTaskBox(), SetIcon(), and ~CTaskBox().

CBitmap CTaskBox::m_bmCaptionmark [protected]
 

Definition at line 108 of file CtrlTaskPanel.h.

Referenced by PaintBorders(), and SetCaptionmark().

CBitmap CTaskBox::m_bmWatermark [protected]
 

Definition at line 107 of file CtrlTaskPanel.h.

Referenced by OnPaint(), CSearchResultsBox::OnPaint(), CSearchAdvancedBox::OnPaint(), CSearchInputBox::OnPaint(), and SetWatermark().

BOOL CTaskBox::m_bOpen [private]
 

Definition at line 101 of file CtrlTaskPanel.h.

Referenced by Create(), CTaskBox(), Expand(), GetOuterHeight(), CTaskPanel::Layout(), OnNcLButtonUp(), and PaintBorders().

BOOL CTaskBox::m_bPrimary [private]
 

Definition at line 103 of file CtrlTaskPanel.h.

Referenced by CTaskBox(), PaintBorders(), SetCaptionmark(), and SetPrimary().

BOOL CTaskBox::m_bVisible [private]
 

Definition at line 100 of file CtrlTaskPanel.h.

Referenced by CTaskBox(), GetOuterHeight(), and CTaskPanel::Layout().

HICON CTaskBox::m_hIcon [private]
 

Definition at line 104 of file CtrlTaskPanel.h.

Referenced by Create(), CTaskBox(), SetIcon(), and ~CTaskBox().

int CTaskBox::m_nHeight [private]
 

Definition at line 99 of file CtrlTaskPanel.h.

Referenced by Create(), CTaskBox(), GetOuterHeight(), CTaskPanel::Layout(), and SetSize().

CTaskPanel* CTaskBox::m_pPanel [private]
 

Definition at line 98 of file CtrlTaskPanel.h.

Referenced by Create(), CTaskBox(), Expand(), GetPanel(), PaintBorders(), SetPrimary(), and SetSize().


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