📄 celineargaugectl.h
字号:
#if !defined(AFX_CELINEARGAUGECTL_H__2DAE0EAB_ABD0_4CB3_966B_EC90BD44298B__INCLUDED_)
#define AFX_CELINEARGAUGECTL_H__2DAE0EAB_ABD0_4CB3_966B_EC90BD44298B__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// CELinearGaugeCtl.h : Declaration of the CCELinearGaugeCtrl ActiveX Control class.
/////////////////////////////////////////////////////////////////////////////
// CCELinearGaugeCtrl : See CELinearGaugeCtl.cpp for implementation.
class CCELinearGaugeCtrl : public COleControl
{
DECLARE_DYNCREATE(CCELinearGaugeCtrl)
// Constructor
public:
CCELinearGaugeCtrl();
CDrawLinearGauges m_LinearGauges;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCELinearGaugeCtrl)
public:
virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
virtual void DoPropExchange(CPropExchange* pPX);
virtual void OnResetState();
//}}AFX_VIRTUAL
// Implementation
protected:
~CCELinearGaugeCtrl();
DECLARE_OLECREATE_EX(CCELinearGaugeCtrl) // Class factory and guid
DECLARE_OLETYPELIB(CCELinearGaugeCtrl) // GetTypeInfo
DECLARE_PROPPAGEIDS(CCELinearGaugeCtrl) // Property page IDs
DECLARE_OLECTLTYPE(CCELinearGaugeCtrl) // Type name and misc status
// Message maps
//{{AFX_MSG(CCELinearGaugeCtrl)
// 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(CCELinearGaugeCtrl)
afx_msg long SetCount(long count);
afx_msg long SetCountEx(long row, long col);
afx_msg long SetCellStyle(long index, long style, long orientation, long rulerStyle);
afx_msg long SetCellStyleEx(long row, long col, long style, long orientation, long rulerstyle);
afx_msg long SetCellFrame(long index, OLE_COLOR frameColor, OLE_COLOR bkColor);
afx_msg long SetCellFrameEx(long row, long col, OLE_COLOR frameColor, OLE_COLOR bkColor);
afx_msg long SetCellRulerEx(long row, long col, long max, long min, long majortics, long minortics, OLE_COLOR majorticsColor, OLE_COLOR minorticsColor, OLE_COLOR rulerFontColor);
afx_msg long SetCellValueCount(long index, long Count);
afx_msg long SetCellValueCountEx(long row, long col, long count);
afx_msg long SetCellValueFrame(long index, long valueIndex, OLE_COLOR valueframeColor, OLE_COLOR valuebkColor, double value);
afx_msg long SetCellValueFrameEx(long row, long col, long valueIndex, OLE_COLOR valueframeColor, OLE_COLOR valuebkColor, double value);
afx_msg long SetCellRuler(long index, long max, long min, long majortics, long minortics, OLE_COLOR majorticsColor, OLE_COLOR minorticsColor, OLE_COLOR rulerFontColor);
//}}AFX_DISPATCH
DECLARE_DISPATCH_MAP()
afx_msg void AboutBox();
// Event maps
//{{AFX_EVENT(CCELinearGaugeCtrl)
//}}AFX_EVENT
DECLARE_EVENT_MAP()
// Dispatch and event IDs
public:
enum {
//{{AFX_DISP_ID(CCELinearGaugeCtrl)
dispidSetCount = 1L,
dispidSetCountEx = 2L,
dispidSetCellStyle = 3L,
dispidSetCellStyleEx = 4L,
dispidSetCellFrame = 5L,
dispidSetCellFrameEx = 6L,
dispidSetCellRulerEx = 7L,
dispidSetCellValueCount = 8L,
dispidSetCellValueCountEx = 9L,
dispidSetCellValueFrame = 10L,
dispidSetCellValueFrameEx = 11L,
dispidSetCellRuler = 12L,
//}}AFX_DISP_ID
};
};
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CELINEARGAUGECTL_H__2DAE0EAB_ABD0_4CB3_966B_EC90BD44298B__INCLUDED)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -