📄 tiplistctrl.h
字号:
#if !defined(AFX_TIPLISTCTRL_H__5D65A547_9C1A_41E5_8103_355842CE0C4D__INCLUDED_)
#define AFX_TIPLISTCTRL_H__5D65A547_9C1A_41E5_8103_355842CE0C4D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TipListCtrl.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CTipListCtrl dialog
class CTipListCtrl : public CDialog
{
// Construction
public:
CTipListCtrl(CWnd* pParent = NULL); // standard constructor
void GetMargin( LPRECT lprc ) const;
void SetMargin( LPRECT lprc );
COLORREF GetTipTextColor()const;
COLORREF GetTipBkColor()const;
void SetTipBkColor(COLORREF clr);
void SetTipTextColor(COLORREF clr);
void DelTool(CWnd*pWnd);
void RelayEvent( LPMSG lpMsg );
int GetDelayTime( DWORD dwDuration ) const;
BOOL AddTool( CWnd* pWnd, LPCTSTR lpszText= LPSTR_TEXTCALLBACK);
void SetDelayTime( DWORD dwDuration, int iTime );
void SetDelayTime(UINT nDelay);
int ModifyRichtrlRect();
void Show();
void Hide();
// Dialog Data
//{{AFX_DATA(CTipListCtrl)
enum { IDD = IDD_DIALOG_TIPLIST };
CListCtrl m_ListCtrlTip;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTipListCtrl)
public:
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CTipListCtrl)
afx_msg void OnPaint();
afx_msg void OnDestroy();
afx_msg void OnTimer(UINT nIDEvent);
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
int m_nTimeAutoPop;
int m_nTimeReShow;
int m_nTimeInitial;
CMapPtrToPtr m_map;
BOOL m_bTimerInitial;
BOOL m_bTimerPop;
HWND m_hCurWnd;
COLORREF m_crBg;
COLORREF m_crText;
char m_strText[1024];
CRect m_rcMargin;
CImageList *m_pImageList;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TIPLISTCTRL_H__5D65A547_9C1A_41E5_8103_355842CE0C4D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -