📄 lcddlg.h
字号:
#if !defined(AFX_LCDDLG_H__035396CF_451E_4CF9_AE02_CFA70B744DE8__INCLUDED_)
#define AFX_LCDDLG_H__035396CF_451E_4CF9_AE02_CFA70B744DE8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// LCDDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// LCDDlg dialog
class LCDDlg : public CDialog
{
public:
// 设置LCD显示窗口的参数
void SetParameter(int nBGPeriod, int nFloorNumber, int nDirection, CString strAVIFile, LOGFONT lfTimeFont, COLORREF crTimeColor);
protected:
LOGFONT m_lfTimeFont; // 时间显示字体
COLORREF m_crTimeColor; // 时间显示颜色
int m_nBGPeriod; // 背景图片的更新周期,单位:秒
int m_nFloorNumber; // 电梯楼层
int m_nDirection; // 电梯方向:0-上;1-下
CString m_strAVIFile; // AVI动画文件
CStringArray m_BGImages; // 该集合保存背景图片的文件名
int m_nCurrentBGImage; // 当前背景图片的序号
CDC m_dcMem;
CBitmap m_bmpMem; // 保存当前背景图片
HWND m_hAVIWnd; // AVI视频窗口
// 调整AVI视频窗口的位置
//void RepositionAVIWindow();
// Construction
public:
LCDDlg(int nBGPeriod, int nFloorNumber, int nDirection, CString strAVIFile, LOGFONT lfTimeFont, COLORREF crTimeColor, CWnd* pParent = NULL); // standard constructor
//LCDDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(LCDDlg)
enum { IDD = IDD_LCD_DLG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(LCDDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(LCDDlg)
// NOTE: the ClassWizard will add member functions here
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LCDDLG_H__035396CF_451E_4CF9_AE02_CFA70B744DE8__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -