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

CCoolBarItem Class Reference

#include <CtrlCoolBar.h>

List of all members.

Public Member Functions

 CCoolBarItem (CCoolBarCtrl *pBar, UINT nID=ID_SEPARATOR, int nImage=-1)
 CCoolBarItem (CCoolBarCtrl *pBar, CCoolBarItem *pCopy)
virtual ~CCoolBarItem ()
virtual void Show (BOOL bOn)
virtual void Enable (BOOL bOn)
virtual void SetCheck (int nCheck)
virtual void SetImage (UINT nCommandID)
virtual void SetText (LPCTSTR lpszText)
virtual void SetTip (LPCTSTR pszTip)
virtual void SetTextColour (COLORREF crText=0xFFFFFFFF)

Static Public Member Functions

static CCoolBarItemFromCmdUI (CCmdUI *pUI)

Public Attributes

BOOL m_bVisible
BOOL m_bEnabled
BOOL m_bChecked
int m_nImage
CString m_sText
CString m_sTip
COLORREF m_crText
UINT m_nCtrlID
int m_nCtrlHeight

Protected Member Functions

void Paint (CDC *pDC, CRect &rc, BOOL bDown, BOOL bHot, BOOL bMenuGray, BOOL bTransparent)

Protected Attributes

CCoolBarCtrlm_pBar
BOOL m_bDirty
int m_nWidth

Friends

class CCoolBarCtrl


Constructor & Destructor Documentation

CCoolBarItem::CCoolBarItem CCoolBarCtrl pBar,
UINT  nID = ID_SEPARATOR,
int  nImage = -1
 

Definition at line 903 of file CtrlCoolBar.cpp.

References CONTROL_HEIGHT, ID_RIGHTALIGN, ID_SEPARATOR, IMAGEBUTTON_WIDTH, m_bChecked, m_bEnabled, m_bVisible, m_crText, m_nCtrlHeight, m_nCtrlID, m_nImage, m_nWidth, m_pBar, and SEPARATOR_WIDTH.

CCoolBarItem::CCoolBarItem CCoolBarCtrl pBar,
CCoolBarItem pCopy
 

Definition at line 930 of file CtrlCoolBar.cpp.

References CoolInterface, CCoolInterface::ImageForID(), m_bChecked, m_bEnabled, m_bVisible, m_crText, m_nCtrlHeight, m_nCtrlID, m_nImage, m_nWidth, m_pBar, m_sText, m_sTip, and SetText().

CCoolBarItem::~CCoolBarItem  )  [virtual]
 

Definition at line 949 of file CtrlCoolBar.cpp.


Member Function Documentation

void CCoolBarItem::Enable BOOL  bOn  )  [virtual]
 

Definition at line 964 of file CtrlCoolBar.cpp.

References m_bEnabled, and NULL.

CCoolBarItem * CCoolBarItem::FromCmdUI CCmdUI *  pUI  )  [static]
 

Definition at line 1023 of file CtrlCoolBar.cpp.

References NULL.

Referenced by CPlugins::OnUpdate(), CChatFrame::OnUpdateChatConnect(), CChatFrame::OnUpdateChatDisconnect(), CDownloadsWnd::OnUpdateDownloadsClearComplete(), CDownloadsWnd::OnUpdateDownloadsClearIncomplete(), CDownloadsWnd::OnUpdateDownloadsEnqueue(), CDownloadsWnd::OnUpdateDownloadsFileDelete(), CDownloadsWnd::OnUpdateDownloadsLaunch(), CDownloadsWnd::OnUpdateDownloadsLaunchComplete(), CDownloadsWnd::OnUpdateDownloadsLaunchCopy(), CDownloadsWnd::OnUpdateDownloadsMonitor(), CDownloadsWnd::OnUpdateDownloadsPause(), CDownloadsWnd::OnUpdateDownloadsResume(), CDownloadsWnd::OnUpdateDownloadsTorrentInfo(), CMediaFrame::OnUpdateMediaPause(), and CMediaFrame::OnUpdateMediaPlay().

void CCoolBarItem::Paint CDC *  pDC,
CRect &  rc,
BOOL  bDown,
BOOL  bHot,
BOOL  bMenuGray,
BOOL  bTransparent
[protected]
 

Definition at line 1033 of file CtrlCoolBar.cpp.

References CONTROL_HEIGHT, CoolInterface, ID_SEPARATOR, m_bChecked, m_bEnabled, CCoolInterface::m_crBackCheck, CCoolInterface::m_crBackCheckSel, CCoolInterface::m_crBackNormal, CCoolInterface::m_crBackSel, CCoolInterface::m_crBorder, CCoolInterface::m_crCmdText, CCoolInterface::m_crCmdTextSel, CCoolInterface::m_crDisabled, CCoolInterface::m_crMidtone, CCoolInterface::m_crShadow, m_crText, CCoolInterface::m_crWindow, m_nCtrlHeight, m_nCtrlID, m_nImage, CCoolInterface::m_pImages, m_sText, and NULL.

Referenced by CCoolBarCtrl::DoPaint().

void CCoolBarItem::SetCheck int  nCheck  )  [virtual]
 

Definition at line 971 of file CtrlCoolBar.cpp.

References m_bChecked, m_bDirty, and NULL.

Referenced by CSearchWnd::OnUpdateSearchPanel().

void CCoolBarItem::SetImage UINT  nCommandID  )  [virtual]
 

Definition at line 1014 of file CtrlCoolBar.cpp.

References CoolInterface, CCoolInterface::ImageForID(), m_bDirty, m_nImage, and NULL.

void CCoolBarItem::SetText LPCTSTR  lpszText  )  [virtual]
 

Definition at line 979 of file CtrlCoolBar.cpp.

References BUTTON_WIDTH, CoolInterface, IMAGE_WIDTH, CCoolBarCtrl::m_bBold, m_bDirty, CCoolInterface::m_fntBold, CCoolInterface::m_fntNormal, m_nImage, m_nWidth, m_pBar, m_sText, NULL, and TEXT_GAP.

Referenced by CCoolBarCtrl::Add(), CCoolBarItem(), CMainWnd::OnUpdateTabConnect(), and CCoolMenuBarCtrl::SetMenu().

void CCoolBarItem::SetTextColour COLORREF  crText = 0xFFFFFFFF  )  [virtual]
 

Definition at line 1006 of file CtrlCoolBar.cpp.

References m_bDirty, m_crText, and NULL.

void CCoolBarItem::SetTip LPCTSTR  pszTip  )  [virtual]
 

Definition at line 998 of file CtrlCoolBar.cpp.

References m_bDirty, m_sTip, and NULL.

Referenced by CSkin::CreateToolBar(), CSearchWnd::OnUpdateSearchPanel(), and CMainWnd::OnUpdateTabConnect().

void CCoolBarItem::Show BOOL  bOn  )  [virtual]
 

Definition at line 956 of file CtrlCoolBar.cpp.

References m_bDirty, m_bVisible, and NULL.

Referenced by CSkin::CreateToolBar(), CPlugins::OnUpdate(), and CLibraryTreeView::OnUpdateLibraryParent().


Friends And Related Function Documentation

friend class CCoolBarCtrl [friend]
 

Definition at line 162 of file CtrlCoolBar.h.


Member Data Documentation

BOOL CCoolBarItem::m_bChecked
 

Definition at line 134 of file CtrlCoolBar.h.

Referenced by CCoolBarItem(), Paint(), and SetCheck().

BOOL CCoolBarItem::m_bDirty [protected]
 

Definition at line 144 of file CtrlCoolBar.h.

Referenced by CCoolBarCtrl::OnUpdateCmdUI(), SetCheck(), SetImage(), SetText(), SetTextColour(), SetTip(), and Show().

BOOL CCoolBarItem::m_bEnabled
 

Definition at line 133 of file CtrlCoolBar.h.

Referenced by CCoolBarItem(), Enable(), CCoolBarCtrl::OnLButtonDown(), CCoolBarCtrl::OnUpdateCmdUI(), and Paint().

BOOL CCoolBarItem::m_bVisible
 

Definition at line 132 of file CtrlCoolBar.h.

Referenced by CCoolBarCtrl::CalcFixedLayout(), CCoolBarItem(), CCoolBarCtrl::DoPaint(), CCoolBarCtrl::GetItemRect(), CCoolBarCtrl::HitTest(), and Show().

COLORREF CCoolBarItem::m_crText
 

Definition at line 139 of file CtrlCoolBar.h.

Referenced by CCoolBarItem(), CSkin::CreateToolBar(), Paint(), and SetTextColour().

int CCoolBarItem::m_nCtrlHeight
 

Definition at line 141 of file CtrlCoolBar.h.

Referenced by CCoolBarCtrl::Add(), CCoolBarItem(), and Paint().

UINT CCoolBarItem::m_nCtrlID
 

Definition at line 140 of file CtrlCoolBar.h.

Referenced by CCoolBarCtrl::Add(), CCoolBarItem(), CCoolBarCtrl::DoPaint(), CCoolBarCtrl::OnUpdateCmdUI(), and Paint().

int CCoolBarItem::m_nImage
 

Definition at line 136 of file CtrlCoolBar.h.

Referenced by CCoolBarCtrl::Add(), CCoolBarItem(), Paint(), SetImage(), and SetText().

int CCoolBarItem::m_nWidth [protected]
 

Definition at line 145 of file CtrlCoolBar.h.

Referenced by CCoolBarCtrl::Add(), CCoolBarCtrl::CalcFixedLayout(), CCoolBarItem(), CCoolBarCtrl::DoPaint(), CCoolBarCtrl::GetItemRect(), CCoolBarCtrl::HitTest(), and SetText().

CCoolBarCtrl* CCoolBarItem::m_pBar [protected]
 

Definition at line 143 of file CtrlCoolBar.h.

Referenced by CCoolBarItem(), and SetText().

CString CCoolBarItem::m_sText
 

Definition at line 137 of file CtrlCoolBar.h.

Referenced by CCoolBarItem(), Paint(), and SetText().

CString CCoolBarItem::m_sTip
 

Definition at line 138 of file CtrlCoolBar.h.

Referenced by CCoolBarItem(), CCoolBarCtrl::OnToolHitTest(), and SetTip().


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