📄 tipdlg.h
字号:
#if !defined(AFX_TIPDLG_H__AA7EE2C0_6A21_4207_B4A2_915D0FE3E230__INCLUDED_)
#define AFX_TIPDLG_H__AA7EE2C0_6A21_4207_B4A2_915D0FE3E230__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TipDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CTipDlg dialog
class CTipDlg : public CDialog
{
// Construction
public:
CTipDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CTipDlg)
enum { IDD = IDD_DIALOG_TIP };
CRichEditCtrl m_editctrl;
//}}AFX_DATA
int i_ismoved;
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();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTipDlg)
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(CTipDlg)
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;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TIPDLG_H__AA7EE2C0_6A21_4207_B4A2_915D0FE3E230__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -