?? sevensegnumctl.h
字號:
#if !defined(AFX_SEVENSEGNUMCTL_H__058582ED_4834_4D5F_940B_327067B6CD2A__INCLUDED_)
#define AFX_SEVENSEGNUMCTL_H__058582ED_4834_4D5F_940B_327067B6CD2A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SevenSegNumCtl.h : Declaration of the CSevenSegNumCtrl ActiveX Control class.
/////////////////////////////////////////////////////////////////////////////
// CSevenSegNumCtrl : See SevenSegNumCtl.cpp for implementation.
class CSevenSegNumCtrl : public COleControl
{
DECLARE_DYNCREATE(CSevenSegNumCtrl)
// Constructor
public:
CSevenSegNumCtrl();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSevenSegNumCtrl)
public:
virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
virtual void DoPropExchange(CPropExchange* pPX);
virtual void OnResetState();
//}}AFX_VIRTUAL
// Implementation
protected:
~CSevenSegNumCtrl();
DECLARE_OLECREATE_EX(CSevenSegNumCtrl) // Class factory and guid
DECLARE_OLETYPELIB(CSevenSegNumCtrl) // GetTypeInfo
DECLARE_PROPPAGEIDS(CSevenSegNumCtrl) // Property page IDs
DECLARE_OLECTLTYPE(CSevenSegNumCtrl) // Type name and misc status
// Message maps
//{{AFX_MSG(CSevenSegNumCtrl)
// NOTE - ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
// Dispatch maps
//{{AFX_DISPATCH(CSevenSegNumCtrl)
afx_msg void SetValue(short chValue);
afx_msg void SetBackColor(long Backcolor);
afx_msg void SetForeColor1(long ForeColor1);
afx_msg void SetForeColor2(long ForeColor2);
//}}AFX_DISPATCH
DECLARE_DISPATCH_MAP()
afx_msg void AboutBox();
// Event maps
//{{AFX_EVENT(CSevenSegNumCtrl)
//}}AFX_EVENT
DECLARE_EVENT_MAP()
private:
long lBackColor;
long lForeColor2;
long lForeColor1;
short chVal;
// Dispatch and event IDs
public:
enum {
//{{AFX_DISP_ID(CSevenSegNumCtrl)
dispidSetValue = 1L,
dispidSetBackColor = 2L,
dispidSetForeColor1 = 3L,
dispidSetForeColor2 = 4L,
//}}AFX_DISP_ID
};
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SEVENSEGNUMCTL_H__058582ED_4834_4D5F_940B_327067B6CD2A__INCLUDED)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -