📄 cdisp.h
字号:
///////////////////////////////////////////////////////////////////////////////
// CDisp.h : header file
// Visual Source Safe: $Revision: 1 $
//
// Display static control. Will display a Characte.
///////////////////////////////////////////////////////////////////////////////
// Copyright (C) 1998-1999 Monte Variakojis ( monte@apollocom.com )
// All rights reserved - not to be sold.
///////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_LEDWND_H__2D837381_FFEC_11D1_A1CE_00A024D311C0__INCLUDED_)
#define AFX_LEDWND_H__2D837381_FFEC_11D1_A1CE_00A024D311C0__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
///////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// CLed window
class CDisp : public CStatic
{
protected:
int m_nBGColor;
BOOL bActived=false;
CBitmap m_BGBitmap;
CWnd m_hWnd;
CString m_str;
public:
enum{
BG_COLOR_RED = 0,
BG_COLOR_GRE = 1,
BG_COLOR_YEL = 2,
};
// Construction
public:
CDisp();
// Attributes
public:
// Operations
public:
void SetDisp(CWnd *pWnd,int m_nBGColor,CString *str);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDisp)
//}}AFX_VIRTUAL
// Implementation
public:
void DrawDisp( CDC *pDC, int nBGColor,CString str );
virtual ~CDisp();
// Generated message map functions
protected:
//{{AFX_MSG(CLed)
afx_msg void OnPaint();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LEDWND_H__2D837381_FFEC_11D1_A1CE_00A024D311C0__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -