📄 alarmlamp.h
字号:
#if !defined(AFX_ALARMLAMP_H__5E8E0264_4521_11D5_9F7A_00C02650BB86__INCLUDED_)
#define AFX_ALARMLAMP_H__5E8E0264_4521_11D5_9F7A_00C02650BB86__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// AlarmLamp.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CAlarmLamp window
class CAlarmLamp : public CWnd
{
// Construction
public:
CAlarmLamp();
// Attributes
public:
BOOL m_bSway;
int m_nButtonType;
CToolTipCtrl* m_pToolTip;
CRect m_rectSearch;
CString m_sCaption;
BOOL m_bDBClk;
// Operations
public:
void CreateTooltips();
void SetSway(BOOL bStart);
BOOL CreatePoint(CString sCaption,CPoint point, CWnd* pParentWnd, UINT nID);
void SetCaption(CString sCaption);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAlarmLamp)
public:
virtual BOOL Create(CString sCaption,CRect rect, CWnd* pParentWnd, UINT nID);
virtual BOOL PreTranslateMessage(MSG* pMsg);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CAlarmLamp();
// Generated message map functions
protected:
//{{AFX_MSG(CAlarmLamp)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnPaint();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
//}}AFX_MSG
afx_msg BOOL OnToolTipNotify(UINT id, NMHDR *pNMH, LRESULT *pResult);
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ALARMLAMP_H__5E8E0264_4521_11D5_9F7A_00C02650BB86__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -