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

CCoolTipCtrl Class Reference

#include <CtrlCoolTip.h>

Inheritance diagram for CCoolTipCtrl:

CAlbumTipCtrl CDownloadTipCtrl CFolderTipCtrl CLibraryTipCtrl CNeighbourTipCtrl CUploadTipCtrl List of all members.

Public Member Functions

 CCoolTipCtrl ()
virtual ~CCoolTipCtrl ()
virtual void Show (LPVOID pContext, HWND hAltWnd=NULL)
virtual void Hide ()
virtual BOOL Create (CWnd *pParentWnd, BOOL *pbEnable=NULL)

Protected Member Functions

virtual void ShowImpl ()
void CalcSizeHelper ()
void AddSize (CDC *pDC, LPCTSTR pszText, int nBase=0)
void GetPaintRect (RECT *pRect)
void DrawText (CDC *pDC, POINT *pPoint, LPCTSTR pszText, int nBase=0)
void DrawRule (CDC *pDC, POINT *pPoint, BOOL bPos=FALSE)
BOOL WindowFromPointBelongsToOwner (const CPoint &point)
CLineGraphCreateLineGraph ()
virtual BOOL OnPrepare ()
virtual void OnCalcSize (CDC *pDC)
virtual void OnShow ()
virtual void OnHide ()
virtual void OnPaint (CDC *pDC)
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnDestroy ()
afx_msg BOOL OnEraseBkgnd (CDC *pDC)
afx_msg void OnPaint ()
afx_msg void OnMouseMove (UINT nFlags, CPoint point)
afx_msg void OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags)
afx_msg void OnTimer (UINT nIDEvent)

Protected Attributes

BOOL * m_pbEnable
LPVOID m_pContext
HWND m_hAltWnd
BOOL m_bTimer
BOOL m_bVisible
CPoint m_pOpen
DWORD m_tOpen
CSize m_sz

Static Protected Attributes

static LPCTSTR m_hClass = NULL

Constructor & Destructor Documentation

CCoolTipCtrl::CCoolTipCtrl  ) 
 

Definition at line 61 of file CtrlCoolTip.cpp.

CCoolTipCtrl::~CCoolTipCtrl  )  [virtual]
 

Definition at line 75 of file CtrlCoolTip.cpp.

References NULL.


Member Function Documentation

void CCoolTipCtrl::AddSize CDC *  pDC,
LPCTSTR  pszText,
int  nBase = 0
[protected]
 

Definition at line 264 of file CtrlCoolTip.cpp.

References m_sz.

Referenced by CUploadTipCtrl::OnCalcSize(), CFolderTipCtrl::OnCalcSize(), CAlbumTipCtrl::OnCalcSize(), CNeighbourTipCtrl::OnCalcSize(), CLibraryTipCtrl::OnCalcSize(), and CDownloadTipCtrl::OnCalcSize().

void CCoolTipCtrl::CalcSizeHelper  )  [protected]
 

Definition at line 251 of file CtrlCoolTip.cpp.

References CoolInterface, CCoolInterface::m_fntBold, m_sz, and OnCalcSize().

Referenced by CUploadTipCtrl::OnPrepare(), CFolderTipCtrl::OnPrepare(), CAlbumTipCtrl::OnPrepare(), CNeighbourTipCtrl::OnPrepare(), CLibraryTipCtrl::OnPrepare(), and CDownloadTipCtrl::OnPrepare().

BOOL CCoolTipCtrl::Create CWnd *  pParentWnd,
BOOL *  pbEnable = NULL
[virtual]
 

Definition at line 83 of file CtrlCoolTip.cpp.

References CShareazaApp::m_bRTL, m_hClass, m_pbEnable, NULL, and theApp.

Referenced by CNeighboursWnd::OnCreate(), CUploadsCtrl::OnCreate(), CMediaListCtrl::OnCreate(), CLibraryTreeView::OnCreate(), CLibraryFrame::OnCreate(), CHomeDownloadsBox::OnCreate(), and CDownloadsCtrl::OnCreate().

CLineGraph * CCoolTipCtrl::CreateLineGraph  )  [protected]
 

Definition at line 335 of file CtrlCoolTip.cpp.

References CCoolInterface::CalculateColour(), CoolInterface, CLineGraph::m_bShowAxis, CLineGraph::m_bShowLegend, CLineGraph::m_crBack, CLineGraph::m_crGrid, CCoolInterface::m_crTipBack, CCoolInterface::m_crTipBorder, and CLineGraph::m_nMinGridVert.

Referenced by CUploadTipCtrl::OnShow(), CNeighbourTipCtrl::OnShow(), and CDownloadTipCtrl::OnShow().

void CCoolTipCtrl::DrawRule CDC *  pDC,
POINT *  pPoint,
BOOL  bPos = FALSE
[protected]
 

Definition at line 294 of file CtrlCoolTip.cpp.

References CoolInterface, CCoolInterface::m_crTipBorder, m_sz, and TIP_MARGIN.

Referenced by CUploadTipCtrl::OnPaint(), CFolderTipCtrl::OnPaint(), CAlbumTipCtrl::OnPaint(), CNeighbourTipCtrl::OnPaint(), CLibraryTipCtrl::OnPaint(), and CDownloadTipCtrl::OnPaint().

void CCoolTipCtrl::DrawText CDC *  pDC,
POINT *  pPoint,
LPCTSTR  pszText,
int  nBase = 0
[protected]
 

Definition at line 279 of file CtrlCoolTip.cpp.

References CoolInterface, CShareazaApp::m_bRTL, CCoolInterface::m_crTipBack, NULL, and theApp.

Referenced by CUploadTipCtrl::OnPaint(), CFolderTipCtrl::OnPaint(), CAlbumTipCtrl::OnPaint(), CNeighbourTipCtrl::OnPaint(), CLibraryTipCtrl::OnPaint(), and CDownloadTipCtrl::OnPaint().

void CCoolTipCtrl::GetPaintRect RECT *  pRect  )  [protected]
 

Definition at line 271 of file CtrlCoolTip.cpp.

References m_sz.

void CCoolTipCtrl::Hide  )  [virtual]
 

Definition at line 132 of file CtrlCoolTip.cpp.

References m_bTimer, m_bVisible, m_pContext, m_pOpen, m_tOpen, NULL, OnHide(), and WS_EX_LAYERED.

Referenced by CLibraryTreeCtrl::Clear(), CMediaListCtrl::OnBeginDrag(), CDownloadsCtrl::OnBeginDrag(), OnDestroy(), CUploadsCtrl::OnKeyDown(), CTipListCtrl::OnKeyDown(), CMediaListCtrl::OnKeyDown(), CLibraryTreeCtrl::OnKeyDown(), CDownloadsCtrl::OnKeyDown(), OnKeyDown(), CUploadsCtrl::OnLButtonDown(), CTipListCtrl::OnLButtonDown(), CMediaListCtrl::OnLButtonDown(), CLibraryTreeCtrl::OnLButtonDown(), CDownloadsCtrl::OnLButtonDown(), CUploadsCtrl::OnMouseMove(), CTipListCtrl::OnMouseMove(), CMediaListCtrl::OnMouseMove(), CLibraryTreeCtrl::OnMouseMove(), CLibraryAlbumView::OnMouseMove(), CDownloadsCtrl::OnMouseMove(), OnMouseMove(), CUploadTipCtrl::OnPaint(), CDownloadTipCtrl::OnPaint(), CUploadsCtrl::OnRButtonDown(), CTipListCtrl::OnRButtonDown(), CMediaListCtrl::OnRButtonDown(), CDownloadsCtrl::OnRButtonDown(), CHomeDownloadsBox::OnSetCursor(), CUploadTipCtrl::OnTimer(), OnTimer(), CLibraryTreeCtrl::SetToolTip(), CLibraryFrame::SetView(), and Show().

void CCoolTipCtrl::OnCalcSize CDC *  pDC  )  [protected, virtual]
 

Reimplemented in CDownloadTipCtrl, CLibraryTipCtrl, CNeighbourTipCtrl, CAlbumTipCtrl, CFolderTipCtrl, and CUploadTipCtrl.

Definition at line 443 of file CtrlCoolTip.cpp.

Referenced by CalcSizeHelper().

int CCoolTipCtrl::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Definition at line 354 of file CtrlCoolTip.cpp.

References m_bTimer.

void CCoolTipCtrl::OnDestroy  )  [protected]
 

Reimplemented in CLibraryTipCtrl.

Definition at line 361 of file CtrlCoolTip.cpp.

References Hide(), m_bTimer, and m_bVisible.

Referenced by CLibraryTipCtrl::OnDestroy().

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

Definition at line 369 of file CtrlCoolTip.cpp.

void CCoolTipCtrl::OnHide  )  [protected, virtual]
 

Reimplemented in CDownloadTipCtrl, CLibraryTipCtrl, CNeighbourTipCtrl, and CUploadTipCtrl.

Definition at line 451 of file CtrlCoolTip.cpp.

Referenced by Hide().

void CCoolTipCtrl::OnKeyDown UINT  nChar,
UINT  nRepCnt,
UINT  nFlags
[protected]
 

Definition at line 401 of file CtrlCoolTip.cpp.

References Hide().

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

Definition at line 396 of file CtrlCoolTip.cpp.

References Hide().

void CCoolTipCtrl::OnPaint  )  [protected]
 

Definition at line 374 of file CtrlCoolTip.cpp.

References CoolInterface, CCoolInterface::m_crTipBack, CCoolInterface::m_crTipBorder, CCoolInterface::m_fntBold, and TIP_MARGIN.

Referenced by CDownloadTipCtrl::OnPaint().

void CCoolTipCtrl::OnPaint CDC *  pDC  )  [protected, virtual]
 

Reimplemented in CDownloadTipCtrl, CLibraryTipCtrl, CNeighbourTipCtrl, CAlbumTipCtrl, CFolderTipCtrl, and CUploadTipCtrl.

Definition at line 455 of file CtrlCoolTip.cpp.

BOOL CCoolTipCtrl::OnPrepare  )  [protected, virtual]
 

Reimplemented in CDownloadTipCtrl, CLibraryTipCtrl, CNeighbourTipCtrl, CAlbumTipCtrl, CFolderTipCtrl, and CUploadTipCtrl.

Definition at line 438 of file CtrlCoolTip.cpp.

Referenced by ShowImpl().

void CCoolTipCtrl::OnShow  )  [protected, virtual]
 

Reimplemented in CDownloadTipCtrl, CLibraryTipCtrl, CNeighbourTipCtrl, and CUploadTipCtrl.

Definition at line 447 of file CtrlCoolTip.cpp.

Referenced by ShowImpl().

void CCoolTipCtrl::OnTimer UINT  nIDEvent  )  [protected]
 

Reimplemented in CDownloadTipCtrl, CLibraryTipCtrl, CNeighbourTipCtrl, and CUploadTipCtrl.

Definition at line 407 of file CtrlCoolTip.cpp.

References Hide(), m_bVisible, m_hAltWnd, m_pOpen, m_tOpen, NULL, ShowImpl(), and WindowFromPointBelongsToOwner().

Referenced by CUploadTipCtrl::OnTimer(), CNeighbourTipCtrl::OnTimer(), CLibraryTipCtrl::OnTimer(), and CDownloadTipCtrl::OnTimer().

void CCoolTipCtrl::Show LPVOID  pContext,
HWND  hAltWnd = NULL
[virtual]
 

Definition at line 97 of file CtrlCoolTip.cpp.

References Hide(), CSettings::Interface, m_bTimer, m_bVisible, m_hAltWnd, m_pbEnable, m_pContext, m_pOpen, m_tOpen, NULL, Settings, ShowImpl(), TIP_TIMER, and CSettings::sInterface::TipDelay.

Referenced by CUploadsCtrl::OnMouseMove(), CTipListCtrl::OnMouseMove(), CMediaListCtrl::OnMouseMove(), CLibraryTreeCtrl::OnMouseMove(), CLibraryAlbumView::OnMouseMove(), CDownloadsCtrl::OnMouseMove(), and CHomeDownloadsBox::OnSetCursor().

void CCoolTipCtrl::ShowImpl  )  [protected, virtual]
 

Definition at line 154 of file CtrlCoolTip.cpp.

References CSettings::Interface, LWA_ALPHA, m_bTimer, m_bVisible, CShareazaApp::m_dwWindowsVersion, m_pOpen, m_sz, NULL, OnPrepare(), OnShow(), Settings, theApp, TIP_MARGIN, TIP_OFFSET_X, TIP_OFFSET_Y, TIP_TIMER, CSettings::sInterface::TipAlpha, and WS_EX_LAYERED.

Referenced by OnTimer(), and Show().

BOOL CCoolTipCtrl::WindowFromPointBelongsToOwner const CPoint &  point  )  [protected]
 

Definition at line 316 of file CtrlCoolTip.cpp.

References m_hAltWnd, and NULL.

Referenced by OnTimer().


Member Data Documentation

BOOL CCoolTipCtrl::m_bTimer [protected]
 

Definition at line 44 of file CtrlCoolTip.h.

Referenced by Hide(), OnCreate(), OnDestroy(), Show(), and ShowImpl().

BOOL CCoolTipCtrl::m_bVisible [protected]
 

Definition at line 45 of file CtrlCoolTip.h.

Referenced by Hide(), OnDestroy(), CLibraryTipCtrl::OnTimer(), OnTimer(), Show(), and ShowImpl().

HWND CCoolTipCtrl::m_hAltWnd [protected]
 

Definition at line 43 of file CtrlCoolTip.h.

Referenced by OnTimer(), Show(), and WindowFromPointBelongsToOwner().

LPCTSTR CCoolTipCtrl::m_hClass = NULL [static, protected]
 

Definition at line 49 of file CtrlCoolTip.cpp.

Referenced by Create().

BOOL* CCoolTipCtrl::m_pbEnable [protected]
 

Definition at line 41 of file CtrlCoolTip.h.

Referenced by Create(), and Show().

LPVOID CCoolTipCtrl::m_pContext [protected]
 

Definition at line 42 of file CtrlCoolTip.h.

Referenced by Hide(), CUploadTipCtrl::OnCalcSize(), CNeighbourTipCtrl::OnCalcSize(), CDownloadTipCtrl::OnCalcSize(), CUploadTipCtrl::OnPaint(), CNeighbourTipCtrl::OnPaint(), CDownloadTipCtrl::OnPaint(), CFolderTipCtrl::OnPrepare(), CAlbumTipCtrl::OnPrepare(), CNeighbourTipCtrl::OnPrepare(), CLibraryTipCtrl::OnPrepare(), CUploadTipCtrl::OnTimer(), CNeighbourTipCtrl::OnTimer(), CDownloadTipCtrl::OnTimer(), and Show().

CPoint CCoolTipCtrl::m_pOpen [protected]
 

Definition at line 46 of file CtrlCoolTip.h.

Referenced by Hide(), OnTimer(), Show(), and ShowImpl().

CSize CCoolTipCtrl::m_sz [protected]
 

Definition at line 48 of file CtrlCoolTip.h.

Referenced by AddSize(), CalcSizeHelper(), CUploadTipCtrl::DrawProgressBar(), CDownloadTipCtrl::DrawProgressBar(), DrawRule(), GetPaintRect(), CUploadTipCtrl::OnCalcSize(), CFolderTipCtrl::OnCalcSize(), CAlbumTipCtrl::OnCalcSize(), CNeighbourTipCtrl::OnCalcSize(), CLibraryTipCtrl::OnCalcSize(), CDownloadTipCtrl::OnCalcSize(), CUploadTipCtrl::OnPaint(), CNeighbourTipCtrl::OnPaint(), CDownloadTipCtrl::OnPaint(), CUploadTipCtrl::OnPrepare(), CFolderTipCtrl::OnPrepare(), CAlbumTipCtrl::OnPrepare(), CLibraryTipCtrl::OnPrepare(), CDownloadTipCtrl::OnPrepare(), and ShowImpl().

DWORD CCoolTipCtrl::m_tOpen [protected]
 

Definition at line 47 of file CtrlCoolTip.h.

Referenced by Hide(), OnTimer(), and Show().


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