📄 cledshowdemodlg.h
字号:
// CLedShowDemoDlg.h : header file
//
#if !defined(AFX_CLEDSHOWDEMODLG_H__9BBCCE55_9FAE_48FA_BFD1_015C332CE308__INCLUDED_)
#define AFX_CLEDSHOWDEMODLG_H__9BBCCE55_9FAE_48FA_BFD1_015C332CE308__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "DynamicLED.h"
#include "PPToolTip.h" // 加入阴影工具提示
/////////////////////////////////////////////////////////////////////////////
// CCLedShowDemoDlg dialog
class CCLedShowDemoDlg : public CDialog
{
// Construction
public:
CCLedShowDemoDlg(CWnd* pParent = NULL); // standard constructor
protected:
CPPToolTip m_tooltip; // 定义阴影工具提示变量
int iVal[10];
// Dialog Data
//{{AFX_DATA(CCLedShowDemoDlg)
enum { IDD = IDD_CLEDSHOWDEMO_DIALOG };
CButton m_Set;
CComboBox m_Id;
CEdit m_SendVal;
CEdit m_Val8;
CEdit m_Val7;
CEdit m_Val6;
CEdit m_Val5;
CEdit m_Val4;
CEdit m_Val3;
CEdit m_Val2;
CEdit m_Val1;
CDynamicLED m_Led8;
CDynamicLED m_Led7;
CDynamicLED m_Led6;
CDynamicLED m_Led5;
CDynamicLED m_Led4;
CDynamicLED m_Led3;
CDynamicLED m_Led2;
CDynamicLED m_Led1;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCLedShowDemoDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
void SetEditValue();
void UpdateLedState();
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CCLedShowDemoDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnHand();
afx_msg void OnOntime();
afx_msg void OnSendcommand();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnSetstate();
virtual void OnOK();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CLEDSHOWDEMODLG_H__9BBCCE55_9FAE_48FA_BFD1_015C332CE308__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -