CXInfoTip Class Reference

#include <XInfoTip.h>

List of all members.

Public Member Functions

void SetAutohideDelay (int nDelay)
BOOL is_DontShowChecked ()
 CXInfoTip ()
virtual ~CXInfoTip ()
BOOL Create (CWnd *parent)
void AddTool (CWnd *pWnd, LPCTSTR szTooltipText, HICON hIcon=NULL)
void RemoveTool (CWnd *pWnd)
void Show (LPCSTR pszCaption, CString szText, BOOL bAutoHide=TRUE, CPoint *pt=NULL)
void Hide ()
void SetShowDelay (int nDelay)
void SetIcon (HICON hIcon)
void SetFont (CFont *pFont)
void RelayEvent (LPMSG lpMsg)

Protected Types

enum  { timerShow = 100, timerHide = 101, timerShowNAH = 102 }

Protected Member Functions

BOOL GetWindowRegion (CDC *pDC, HRGN *hRegion, CSize *Size=NULL)
afx_msg void OnDSA ()
afx_msg BOOL OnSetCursor (CWnd *pWnd, UINT nHitTest, UINT message)
afx_msg HBRUSH OnCtlColor (CDC *pDC, CWnd *pWnd, UINT nCtlColor)
afx_msg void OnLButtonDown (UINT, CPoint)
afx_msg void OnPaint ()
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnTimer (UINT nIDEvent)
afx_msg void OnDestroy ()

Protected Attributes

LPCTSTR m_szClass
int m_nShowDelay
CPoint m_ptOrigin
CString m_szText
CString m_strCaption
int m_nCaptionHeight
UINT m_nTimer
HICON m_hIcon
CSize m_IconSize
CFont * m_pFont
CFont m_fntBold
CMap< HWND, HWND, TipToolInfo,
TipToolInfo
m_ToolMap
int m_nAutohideDelay
BOOL m_bShowDSA
BOOL m_bDSAChecked
bool m_bPlaced
int m_yDSA
int m_cxDSA
CBrush m_brWnd
CButton m_btnDSA

Classes

struct  TipToolInfo


Detailed Description

Definition at line 15 of file XInfoTip.h.


Member Enumeration Documentation

anonymous enum [protected]

Enumerator:
timerShow 
timerHide 
timerShowNAH 

Definition at line 25 of file XInfoTip.h.


Constructor & Destructor Documentation

CXInfoTip::CXInfoTip (  ) 

CXInfoTip::~CXInfoTip (  )  [virtual]

Definition at line 48 of file XInfoTip.cpp.


Member Function Documentation

void CXInfoTip::SetAutohideDelay ( int  nDelay  ) 

Definition at line 406 of file XInfoTip.cpp.

References m_nAutohideDelay.

Referenced by CFloatingWnd::ShowTip().

BOOL CXInfoTip::is_DontShowChecked (  ) 

Definition at line 401 of file XInfoTip.cpp.

References m_bDSAChecked.

BOOL CXInfoTip::Create ( CWnd *  parent  ) 

Definition at line 65 of file XInfoTip.cpp.

References ASSERT, BOOL, m_fntBold, m_pFont, m_szClass, and NULL.

Referenced by CFloatingWnd::ShowTip().

void CXInfoTip::AddTool ( CWnd *  pWnd,
LPCTSTR  szTooltipText,
HICON  hIcon = NULL 
)

void CXInfoTip::RemoveTool ( CWnd *  pWnd  ) 

Definition at line 374 of file XInfoTip.cpp.

References m_ToolMap.

void CXInfoTip::Show ( LPCSTR  pszCaption,
CString  szText,
BOOL  bAutoHide = TRUE,
CPoint *  pt = NULL 
)

Definition at line 83 of file XInfoTip.cpp.

References m_nShowDelay, m_nTimer, m_ptOrigin, m_strCaption, m_szText, NULL, timerShow, and timerShowNAH.

Referenced by RelayEvent(), and CFloatingWnd::ShowTip().

void CXInfoTip::Hide (  )  [inline]

Definition at line 64 of file XInfoTip.h.

References m_nTimer, and timerShowNAH.

Referenced by CFloatingWnd::OnClose(), OnLButtonDown(), CFloatingWnd::OnMoving(), and CFloatingWnd::Show().

void CXInfoTip::SetShowDelay ( int  nDelay  )  [inline]

Definition at line 70 of file XInfoTip.h.

References m_nShowDelay.

Referenced by CFloatingWnd::ShowTip().

void CXInfoTip::SetIcon ( HICON  hIcon  ) 

Definition at line 338 of file XInfoTip.cpp.

References m_hIcon, m_IconSize, and NULL.

Referenced by RelayEvent(), and CFloatingWnd::ShowTip().

void CXInfoTip::SetFont ( CFont *  pFont  )  [inline]

Definition at line 74 of file XInfoTip.h.

References m_pFont.

void CXInfoTip::RelayEvent ( LPMSG  lpMsg  ) 

BOOL CXInfoTip::GetWindowRegion ( CDC *  pDC,
HRGN *  hRegion,
CSize *  Size = NULL 
) [protected]

void CXInfoTip::OnDSA (  )  [protected]

Definition at line 396 of file XInfoTip.cpp.

References m_bDSAChecked, and m_btnDSA.

BOOL CXInfoTip::OnSetCursor ( CWnd *  pWnd,
UINT  nHitTest,
UINT  message 
) [protected]

Definition at line 390 of file XInfoTip.cpp.

References FALSE, and NULL.

HBRUSH CXInfoTip::OnCtlColor ( CDC *  pDC,
CWnd *  pWnd,
UINT  nCtlColor 
) [protected]

Definition at line 384 of file XInfoTip.cpp.

References m_brWnd, and m_pFont.

void CXInfoTip::OnLButtonDown ( UINT  ,
CPoint  pt 
) [protected]

Definition at line 379 of file XInfoTip.cpp.

References Hide().

void CXInfoTip::OnPaint (  )  [protected]

int CXInfoTip::OnCreate ( LPCREATESTRUCT  lpCreateStruct  )  [protected]

Definition at line 222 of file XInfoTip.cpp.

References IDC_DSA, L_DONTSHOWTHISWINDOWAGAIN, LS, m_brWnd, and m_btnDSA.

void CXInfoTip::OnTimer ( UINT  nIDEvent  )  [protected]

void CXInfoTip::OnDestroy (  )  [protected]

Definition at line 288 of file XInfoTip.cpp.

References m_nTimer.


Member Data Documentation

Definition at line 32 of file XInfoTip.h.

Referenced by Create(), and CXInfoTip().

int CXInfoTip::m_nShowDelay [protected]

Definition at line 34 of file XInfoTip.h.

Referenced by CXInfoTip(), SetShowDelay(), and Show().

CPoint CXInfoTip::m_ptOrigin [protected]

Definition at line 36 of file XInfoTip.h.

Referenced by CXInfoTip(), OnTimer(), RelayEvent(), and Show().

CString CXInfoTip::m_szText [protected]

Definition at line 38 of file XInfoTip.h.

Referenced by GetWindowRegion(), OnPaint(), and Show().

CString CXInfoTip::m_strCaption [protected]

Definition at line 39 of file XInfoTip.h.

Referenced by GetWindowRegion(), OnPaint(), and Show().

int CXInfoTip::m_nCaptionHeight [protected]

Definition at line 40 of file XInfoTip.h.

Referenced by GetWindowRegion(), and OnPaint().

Definition at line 42 of file XInfoTip.h.

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

HICON CXInfoTip::m_hIcon [protected]

Definition at line 44 of file XInfoTip.h.

Referenced by CXInfoTip(), GetWindowRegion(), OnPaint(), and SetIcon().

CSize CXInfoTip::m_IconSize [protected]

Definition at line 45 of file XInfoTip.h.

Referenced by CXInfoTip(), GetWindowRegion(), OnPaint(), and SetIcon().

CFont* CXInfoTip::m_pFont [protected]

Definition at line 47 of file XInfoTip.h.

Referenced by Create(), GetWindowRegion(), OnCtlColor(), OnPaint(), and SetFont().

CFont CXInfoTip::m_fntBold [protected]

Definition at line 48 of file XInfoTip.h.

Referenced by Create(), GetWindowRegion(), and OnPaint().

CMap<HWND, HWND, TipToolInfo, TipToolInfo> CXInfoTip::m_ToolMap [protected]

Definition at line 50 of file XInfoTip.h.

Referenced by AddTool(), RelayEvent(), and RemoveTool().

int CXInfoTip::m_nAutohideDelay [protected]

Definition at line 87 of file XInfoTip.h.

Referenced by CXInfoTip(), OnTimer(), and SetAutohideDelay().

BOOL CXInfoTip::m_bShowDSA [protected]

Definition at line 88 of file XInfoTip.h.

Referenced by CXInfoTip(), GetWindowRegion(), and OnPaint().

BOOL CXInfoTip::m_bDSAChecked [protected]

Definition at line 89 of file XInfoTip.h.

Referenced by CXInfoTip(), is_DontShowChecked(), and OnDSA().

Definition at line 92 of file XInfoTip.h.

Referenced by CXInfoTip(), OnPaint(), and OnTimer().

int CXInfoTip::m_yDSA [protected]

Definition at line 93 of file XInfoTip.h.

Referenced by GetWindowRegion(), and OnPaint().

int CXInfoTip::m_cxDSA [protected]

Definition at line 93 of file XInfoTip.h.

Referenced by GetWindowRegion(), and OnPaint().

CBrush CXInfoTip::m_brWnd [protected]

Definition at line 94 of file XInfoTip.h.

Referenced by OnCreate(), and OnCtlColor().

CButton CXInfoTip::m_btnDSA [protected]

Definition at line 96 of file XInfoTip.h.

Referenced by OnCreate(), OnDSA(), and OnPaint().


The documentation for this class was generated from the following files:

Generated on Sun May 25 00:20:59 2008 by  doxygen 1.5.6