📄 popupwnd.h
字号:
#if !defined(AFX_POPUPWND_H__37B58C99_FAF5_4A35_A005_1C39CF682675__INCLUDED_)
#define AFX_POPUPWND_H__37B58C99_FAF5_4A35_A005_1C39CF682675__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PopupWnd.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CPopupWnd window
class CPopupWnd : public CWnd
{
// Construction
public:
CPopupWnd();
CString m_csMessage;
WORD m_wAlign;
UINT m_nTimeout;
private:
DWORD m_dwColor;
CRect m_cRect;
UINT m_nIDTimer;
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPopupWnd)
public:
virtual BOOL Create( LPCTSTR lpszTitle, DWORD dwStyle, CPoint cPoint, CWnd* pParentWnd ); //const RECT& rect, CWnd* pParentWnd );
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CPopupWnd();
void RelayEvent( LPMSG lpMsg );
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 GetDelayTime( DWORD dwDuration ) const;
BOOL AddTool( CWnd* pWnd, LPCTSTR lpszText= LPSTR_TEXTCALLBACK);
void SetDelayTime( DWORD dwDuration, int iTime );
void SetDelayTime(UINT nDelay);
// Generated message map functions
protected:
void OnCmdTip();
void Show();
void Hide();
CSize GetMessageSize();
void Shutdown();
void RegisterWindowClass();
//{{AFX_MSG(CPopupWnd)
afx_msg void OnPaint();
afx_msg void OnDestroy();
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
afx_msg void OnNcRButtonDown(UINT nHitTest, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnSysKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnMButtonDown(UINT nFlags, CPoint point);
afx_msg void OnNcMButtonDown(UINT nHitTest, CPoint point);
//}}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;
CButton m_btn;
};
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// PopupWnd thread
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_POPUPWND_H__37B58C99_FAF5_4A35_A005_1C39CF682675__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -