tipstruct.h
来自「类似vc的集成开发环境」· C头文件 代码 · 共 86 行
H
86 行
#if !defined(AFX_TIPSTRUCT_H__D0C3DF19_C280_48CB_BCE3_D8DF66A477EA__INCLUDED_)
#define AFX_TIPSTRUCT_H__D0C3DF19_C280_48CB_BCE3_D8DF66A477EA__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TipStruct.h : header file
//
#include "TipRich.h"
/////////////////////////////////////////////////////////////////////////////
// CTipStruct dialog
class CTipStruct : public CDialog
{
// Construction
public:
CTipStruct(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CTipStruct)
enum { IDD = IDD_DIALOG_STRUCT };
CTipRich 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);
int SetEditText(CString str_edit);
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(CTipStruct)
afx_msg void OnPaint();
afx_msg void OnDestroy();
afx_msg void OnTimer(UINT nIDEvent);
virtual BOOL OnInitDialog();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnDblclkRichedit(NMHDR* pNMHDR, LRESULT* pResult);
//}}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_TIPSTRUCT_H__D0C3DF19_C280_48CB_BCE3_D8DF66A477EA__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?