#include <XInfoTip.h>
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 |
Definition at line 15 of file XInfoTip.h.
anonymous enum [protected] |
| CXInfoTip::CXInfoTip | ( | ) |
Definition at line 27 of file XInfoTip.cpp.
References DEFAULT_SHOW_DELAY, FALSE, m_bDSAChecked, m_bPlaced, m_bShowDSA, m_hIcon, m_IconSize, m_nAutohideDelay, m_nShowDelay, m_ptOrigin, m_szClass, NULL, and TIMER_HIDE.
| CXInfoTip::~CXInfoTip | ( | ) | [virtual] |
Definition at line 48 of file XInfoTip.cpp.
| void CXInfoTip::SetAutohideDelay | ( | int | nDelay | ) |
Definition at line 406 of file XInfoTip.cpp.
References m_nAutohideDelay.
Referenced by CFloatingWnd::ShowTip().
| BOOL CXInfoTip::is_DontShowChecked | ( | ) |
| 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 | |||
| ) |
Definition at line 363 of file XInfoTip.cpp.
References ASSERT, CXInfoTip::TipToolInfo::hIcon, m_ToolMap, NULL, and CXInfoTip::TipToolInfo::szText.
| void CXInfoTip::RemoveTool | ( | CWnd * | pWnd | ) |
| 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] |
| void CXInfoTip::RelayEvent | ( | LPMSG | lpMsg | ) |
Definition at line 295 of file XInfoTip.cpp.
References CXInfoTip::TipToolInfo::hIcon, m_nTimer, m_ptOrigin, m_ToolMap, NULL, SetIcon(), Show(), CXInfoTip::TipToolInfo::szText, timerShowNAH, and TRUE.
| BOOL CXInfoTip::GetWindowRegion | ( | CDC * | pDC, | |
| HRGN * | hRegion, | |||
| CSize * | Size = NULL | |||
| ) | [protected] |
Definition at line 151 of file XInfoTip.cpp.
References ASSERT, CX_ICON_MARGIN, CX_LEADER, CX_ROUNDED, CY_LEADER, CY_ROUNDED, L_DONTSHOWTHISWINDOWAGAIN, LS, m_bShowDSA, m_cxDSA, m_fntBold, m_hIcon, m_IconSize, m_nCaptionHeight, m_pFont, m_strCaption, m_szText, m_yDSA, NULL, and TRUE.
| void CXInfoTip::OnDSA | ( | ) | [protected] |
| HBRUSH CXInfoTip::OnCtlColor | ( | CDC * | pDC, | |
| CWnd * | pWnd, | |||
| UINT | nCtlColor | |||
| ) | [protected] |
| void CXInfoTip::OnLButtonDown | ( | UINT | , | |
| CPoint | pt | |||
| ) | [protected] |
| void CXInfoTip::OnPaint | ( | ) | [protected] |
Definition at line 96 of file XInfoTip.cpp.
References CX_ICON_MARGIN, CX_ROUNDED, CY_ROUNDED, GetWindowRegion(), m_bPlaced, m_bShowDSA, m_btnDSA, m_cxDSA, m_fntBold, m_hIcon, m_IconSize, m_nCaptionHeight, m_pFont, m_strCaption, m_szText, m_yDSA, and NULL.
| 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] |
Definition at line 236 of file XInfoTip.cpp.
References CX_ROUNDED, CY_ROUNDED, GetWindowRegion(), m_bPlaced, m_nAutohideDelay, m_nTimer, m_ptOrigin, NULL, timerHide, timerShow, timerShowNAH, and TRUE.
| void CXInfoTip::OnDestroy | ( | ) | [protected] |
LPCTSTR CXInfoTip::m_szClass [protected] |
int CXInfoTip::m_nShowDelay [protected] |
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] |
CString CXInfoTip::m_strCaption [protected] |
int CXInfoTip::m_nCaptionHeight [protected] |
UINT CXInfoTip::m_nTimer [protected] |
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] |
CMap<HWND, HWND, TipToolInfo, TipToolInfo> CXInfoTip::m_ToolMap [protected] |
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().
bool CXInfoTip::m_bPlaced [protected] |
int CXInfoTip::m_yDSA [protected] |
int CXInfoTip::m_cxDSA [protected] |
CBrush CXInfoTip::m_brWnd [protected] |
CButton CXInfoTip::m_btnDSA [protected] |
1.5.6