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

CWndTabBar Class Reference

#include <CtrlWndTabBar.h>

List of all members.

Public Member Functions

 CWndTabBar ()
virtual ~CWndTabBar ()
void SetMaximumWidth (int nWidth)
void SetMessage (UINT nMessageID)
void SetMessage (LPCTSTR pszText)
void SetWatermark (HBITMAP hBitmap)
virtual BOOL Create (CWnd *pParentWnd, DWORD dwStyle=WS_CHILD|WS_VISIBLE|CBRS_BOTTOM, UINT nID=AFX_IDW_STATUS_BAR)
virtual CSize CalcFixedLayout (BOOL bStretch, BOOL bHorz)
virtual int OnToolHitTest (CPoint point, TOOLINFO *pTI) const
virtual void OnUpdateCmdUI (CFrameWnd *pTarget, BOOL bDisableIfNoHndler)
virtual void DoPaint (CDC *pDC)

Protected Member Functions

TabItemHitTest (const CPoint &point, CRect *pItemRect=NULL) const
int ImageIndexForWindow (CWnd *pChild)
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
afx_msg void OnRButtonUp (UINT nFlags, CPoint point)
afx_msg void OnLButtonDblClk (UINT nFlags, CPoint point)
afx_msg void OnMouseMove (UINT nFlags, CPoint point)
afx_msg void OnTimer (UINT nIDEvent)
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnMeasureItem (int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct)
afx_msg void OnDrawItem (int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct)
afx_msg void OnMButtonUp (UINT nFlags, CPoint point)
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
afx_msg BOOL OnSetCursor (CWnd *pWnd, UINT nHitTest, UINT message)

Protected Attributes

CPtrList m_pItems
TabItemm_pSelected
TabItemm_pHot
DWORD m_nCookie
BOOL m_bTimer
BOOL m_bMenuGray
CImageList m_pImages
CMapPtrToWord m_pIcons
int m_nCloseImage
CMenu m_mnuChild
int m_nMaximumWidth
UINT m_nMessage
CString m_sMessage
CRect m_rcMessage
CBitmap m_bmImage

Friends

class CWindowManager
class TabItem

Classes

class  TabItem


Constructor & Destructor Documentation

CWndTabBar::CWndTabBar  ) 
 

Definition at line 59 of file CtrlWndTabBar.cpp.

CWndTabBar::~CWndTabBar  )  [virtual]
 

Definition at line 68 of file CtrlWndTabBar.cpp.

References m_pItems.


Member Function Documentation

CSize CWndTabBar::CalcFixedLayout BOOL  bStretch,
BOOL  bHorz
[virtual]
 

Definition at line 147 of file CtrlWndTabBar.cpp.

BOOL CWndTabBar::Create CWnd *  pParentWnd,
DWORD  dwStyle = WS_CHILD|WS_VISIBLE|CBRS_BOTTOM,
UINT  nID = AFX_IDW_STATUS_BAR
[virtual]
 

Definition at line 80 of file CtrlWndTabBar.cpp.

References NULL.

Referenced by CMainWnd::OnCreate().

void CWndTabBar::DoPaint CDC *  pDC  )  [virtual]
 

Definition at line 340 of file CtrlWndTabBar.cpp.

References CoolInterface, CCoolInterface::DrawWatermark(), CCoolInterface::GetBuffer(), ID_CHILD_CLOSE, CCoolInterface::ImageForID(), m_bmImage, CCoolInterface::m_crDisabled, CCoolInterface::m_crMidtone, CCoolInterface::m_fntNormal, m_nCloseImage, m_nMaximumWidth, m_pHot, m_pItems, m_pSelected, m_rcMessage, m_sMessage, NULL, and CWndTabBar::TabItem::Paint().

CWndTabBar::TabItem * CWndTabBar::HitTest const CPoint &  point,
CRect *  pItemRect = NULL
const [protected]
 

Definition at line 292 of file CtrlWndTabBar.cpp.

References m_nMaximumWidth, m_pItems, and NULL.

Referenced by OnLButtonDown(), OnLButtonUp(), OnMButtonUp(), OnMouseMove(), OnRButtonUp(), and OnToolHitTest().

int CWndTabBar::ImageIndexForWindow CWnd *  pChild  )  [protected]
 

Definition at line 270 of file CtrlWndTabBar.cpp.

References m_pIcons, and m_pImages.

Referenced by OnUpdateCmdUI().

int CWndTabBar::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Definition at line 133 of file CtrlWndTabBar.cpp.

References CCoolMenu::AddMenu(), CoolMenu, IDR_CHILDFRAME, m_mnuChild, and m_pImages.

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

Definition at line 643 of file CtrlWndTabBar.cpp.

References CoolMenu, and CCoolMenu::OnDrawItem().

void CWndTabBar::OnLButtonDblClk UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 520 of file CtrlWndTabBar.cpp.

References OnLButtonDown().

void CWndTabBar::OnLButtonDown UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 479 of file CtrlWndTabBar.cpp.

References CSettings::General, GUI_WINDOWED, CSettings::sGeneral::GUIMode, HitTest(), IDS_TABBAR_CONNECTED, CChildWnd::m_bPanelMode, m_nMessage, m_pItems, m_pSelected, m_rcMessage, and Settings.

Referenced by OnLButtonDblClk().

void CWndTabBar::OnLButtonUp UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 534 of file CtrlWndTabBar.cpp.

References HitTest(), ID_NETWORK_SEARCH, IDS_TABBAR_CONNECTED, m_nMessage, m_pItems, and m_rcMessage.

void CWndTabBar::OnMButtonUp UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 552 of file CtrlWndTabBar.cpp.

References HitTest().

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

Definition at line 638 of file CtrlWndTabBar.cpp.

References CoolMenu, and CCoolMenu::OnMeasureItem().

void CWndTabBar::OnMouseMove UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 414 of file CtrlWndTabBar.cpp.

References HitTest(), m_bTimer, m_pHot, and NULL.

void CWndTabBar::OnRButtonUp UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 563 of file CtrlWndTabBar.cpp.

References CoolMenu, HitTest(), ID_CHILD_CLOSE, ID_CHILD_MAXIMISE, ID_CHILD_MINIMISE, ID_CHILD_RESTORE, m_bMenuGray, CChildWnd::m_bPanelMode, CShareazaApp::m_bRTL, m_mnuChild, NULL, CCoolMenu::RegisterEdge(), and theApp.

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

Definition at line 461 of file CtrlWndTabBar.cpp.

References IDC_HAND, IDS_TABBAR_CONNECTED, m_nMessage, m_pItems, m_rcMessage, and theApp.

void CWndTabBar::OnTimer UINT  nIDEvent  )  [protected]
 

Definition at line 438 of file CtrlWndTabBar.cpp.

References m_bTimer, m_pHot, and NULL.

int CWndTabBar::OnToolHitTest CPoint  point,
TOOLINFO *  pTI
const [virtual]
 

Definition at line 323 of file CtrlWndTabBar.cpp.

References HitTest(), CWndTabBar::TabItem::m_hWnd, CWndTabBar::TabItem::m_sCaption, and NULL.

void CWndTabBar::OnUpdateCmdUI CFrameWnd *  pTarget,
BOOL  bDisableIfNoHndler
[virtual]
 

Definition at line 161 of file CtrlWndTabBar.cpp.

References CWindowManager::GetActive(), CWindowManager::GetIterator(), CWindowManager::GetNext(), ImageIndexForWindow(), CWndTabBar::TabItem::m_bAlert, CChildWnd::m_bAlert, CChildWnd::m_bGroupMode, CChildWnd::m_bPanelMode, CChildWnd::m_bTabMode, CWndTabBar::TabItem::m_bVisible, CWndTabBar::TabItem::m_hWnd, CWndTabBar::TabItem::m_nCookie, m_nCookie, CWndTabBar::TabItem::m_nImage, CChildWnd::m_pGroupParent, m_pItems, m_pSelected, CMainWnd::m_pWindows, CWndTabBar::TabItem::m_sCaption, NULL, and TabItem.

Referenced by CMainWnd::OnSkinChanged(), and CMainWnd::OnUpdateFrameTitle().

void CWndTabBar::SetMaximumWidth int  nWidth  ) 
 

Definition at line 107 of file CtrlWndTabBar.cpp.

References m_nMaximumWidth.

Referenced by CMainWnd::SetGUIMode().

void CWndTabBar::SetMessage LPCTSTR  pszText  ) 
 

Definition at line 99 of file CtrlWndTabBar.cpp.

References m_nMessage, m_pItems, and m_sMessage.

void CWndTabBar::SetMessage UINT  nMessageID  ) 
 

Definition at line 87 of file CtrlWndTabBar.cpp.

References CSkin::LoadString(), m_nMessage, m_pItems, m_sMessage, and Skin.

Referenced by CMainWnd::OnUpdateTabConnect(), CMainWnd::OnWindowNavBar(), CMainWnd::OnWindowToolBar(), and CMainWnd::SetGUIMode().

void CWndTabBar::SetWatermark HBITMAP  hBitmap  ) 
 

Definition at line 114 of file CtrlWndTabBar.cpp.

References m_bmImage, CWndTabBar::TabItem::m_nImage, m_pIcons, m_pImages, and m_pItems.

Referenced by CMainWnd::OnSkinChanged().


Friends And Related Function Documentation

friend class CWindowManager [friend]
 

Definition at line 37 of file CtrlWndTabBar.h.

friend class TabItem [friend]
 

Definition at line 122 of file CtrlWndTabBar.h.

Referenced by OnUpdateCmdUI().


Member Data Documentation

BOOL CWndTabBar::m_bMenuGray [protected]
 

Definition at line 71 of file CtrlWndTabBar.h.

Referenced by OnRButtonUp(), and CWndTabBar::TabItem::Paint().

CBitmap CWndTabBar::m_bmImage [protected]
 

Definition at line 82 of file CtrlWndTabBar.h.

Referenced by DoPaint(), and SetWatermark().

BOOL CWndTabBar::m_bTimer [protected]
 

Definition at line 70 of file CtrlWndTabBar.h.

Referenced by OnMouseMove(), and OnTimer().

CMenu CWndTabBar::m_mnuChild [protected]
 

Definition at line 76 of file CtrlWndTabBar.h.

Referenced by OnCreate(), and OnRButtonUp().

int CWndTabBar::m_nCloseImage [protected]
 

Definition at line 75 of file CtrlWndTabBar.h.

Referenced by DoPaint(), and CWndTabBar::TabItem::Paint().

DWORD CWndTabBar::m_nCookie [protected]
 

Definition at line 69 of file CtrlWndTabBar.h.

Referenced by OnUpdateCmdUI().

int CWndTabBar::m_nMaximumWidth [protected]
 

Definition at line 78 of file CtrlWndTabBar.h.

Referenced by DoPaint(), HitTest(), and SetMaximumWidth().

UINT CWndTabBar::m_nMessage [protected]
 

Definition at line 79 of file CtrlWndTabBar.h.

Referenced by OnLButtonDown(), OnLButtonUp(), OnSetCursor(), and SetMessage().

TabItem* CWndTabBar::m_pHot [protected]
 

Definition at line 68 of file CtrlWndTabBar.h.

Referenced by DoPaint(), OnMouseMove(), and OnTimer().

CMapPtrToWord CWndTabBar::m_pIcons [protected]
 

Definition at line 74 of file CtrlWndTabBar.h.

Referenced by ImageIndexForWindow(), and SetWatermark().

CImageList CWndTabBar::m_pImages [protected]
 

Definition at line 73 of file CtrlWndTabBar.h.

Referenced by ImageIndexForWindow(), OnCreate(), CWndTabBar::TabItem::Paint(), and SetWatermark().

CPtrList CWndTabBar::m_pItems [protected]
 

Definition at line 66 of file CtrlWndTabBar.h.

Referenced by DoPaint(), HitTest(), OnLButtonDown(), OnLButtonUp(), OnSetCursor(), OnUpdateCmdUI(), SetMessage(), SetWatermark(), and ~CWndTabBar().

TabItem* CWndTabBar::m_pSelected [protected]
 

Definition at line 67 of file CtrlWndTabBar.h.

Referenced by DoPaint(), OnLButtonDown(), and OnUpdateCmdUI().

CRect CWndTabBar::m_rcMessage [protected]
 

Definition at line 81 of file CtrlWndTabBar.h.

Referenced by DoPaint(), OnLButtonDown(), OnLButtonUp(), and OnSetCursor().

CString CWndTabBar::m_sMessage [protected]
 

Definition at line 80 of file CtrlWndTabBar.h.

Referenced by DoPaint(), and SetMessage().


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