📄 displayparameterctl.h
字号:
#if !defined(AFX_DISPLAYPARAMETERCTL_H__524A90C4_B363_4816_B3B0_9B37023B1BE4__INCLUDED_)
#define AFX_DISPLAYPARAMETERCTL_H__524A90C4_B363_4816_B3B0_9B37023B1BE4__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DisplayParameterCtl.h : Declaration of the CDisplayParameterCtrl ActiveX Control class.
/////////////////////////////////////////////////////////////////////////////
// CDisplayParameterCtrl : See DisplayParameterCtl.cpp for implementation.
class CDisplayParameterCtrl : public COleControl
{
DECLARE_DYNCREATE(CDisplayParameterCtrl)
private:
CString TranString(CString str1);
void DrawTextString(CDC* pdc, const LPRECT rcBounds,int iIndex);
void ProcessTextString(CDC* pdc, const CRect rcBounds);
// Constructor
public:
CDisplayParameterCtrl();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDisplayParameterCtrl)
public:
virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
virtual void DoPropExchange(CPropExchange* pPX);
virtual void OnResetState();
//}}AFX_VIRTUAL
// Implementation
protected:
CString m_sBs2;
CString m_sBs1;
CString m_sUca;
CString m_sUbc;
CString m_sUab;
CString m_sUc;
CString m_sUb;
CString m_sUa;
CString m_sCos;
CString m_sKvar;
CString m_sKw;
short m_iLineDistance;
CString m_sIn;
CString m_sIc;
OLE_COLOR m_fillColor;
BOOL m_bImageHollow;
OLE_COLOR m_backColor;
CString m_sDispOrd;
CString m_sIb;
CString m_sIa;
short m_lineSize;
OLE_COLOR m_foreColor;
~CDisplayParameterCtrl();
DECLARE_OLECREATE_EX(CDisplayParameterCtrl) // Class factory and guid
DECLARE_OLETYPELIB(CDisplayParameterCtrl) // GetTypeInfo
DECLARE_PROPPAGEIDS(CDisplayParameterCtrl) // Property page IDs
DECLARE_OLECTLTYPE(CDisplayParameterCtrl) // Type name and misc status
// Message maps
//{{AFX_MSG(CDisplayParameterCtrl)
// 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(CDisplayParameterCtrl)
afx_msg OLE_COLOR GetForeColor();
afx_msg void SetForeColor(OLE_COLOR nNewValue);
afx_msg short GetLineSize();
afx_msg void SetLineSize(short nNewValue);
afx_msg BSTR GetIa();
afx_msg void SetIa(LPCTSTR lpszNewValue);
afx_msg BSTR GetIb();
afx_msg void SetIb(LPCTSTR lpszNewValue);
afx_msg BSTR GetIc();
afx_msg void SetIc(LPCTSTR lpszNewValue);
afx_msg BSTR GetIn();
afx_msg void SetIn(LPCTSTR lpszNewValue);
afx_msg BSTR GetKw();
afx_msg void SetKw(LPCTSTR lpszNewValue);
afx_msg BSTR GetKvar();
afx_msg void SetKvar(LPCTSTR lpszNewValue);
afx_msg BSTR GetCos();
afx_msg void SetCos(LPCTSTR lpszNewValue);
afx_msg BSTR GetUa();
afx_msg void SetUa(LPCTSTR lpszNewValue);
afx_msg BSTR GetUb();
afx_msg void SetUb(LPCTSTR lpszNewValue);
afx_msg BSTR GetUc();
afx_msg void SetUc(LPCTSTR lpszNewValue);
afx_msg BSTR GetUab();
afx_msg void SetUab(LPCTSTR lpszNewValue);
afx_msg BSTR GetUbc();
afx_msg void SetUbc(LPCTSTR lpszNewValue);
afx_msg BSTR GetUca();
afx_msg void SetUca(LPCTSTR lpszNewValue);
afx_msg BSTR GetBs1();
afx_msg void SetBs1(LPCTSTR lpszNewValue);
afx_msg BSTR GetBs2();
afx_msg void SetBs2(LPCTSTR lpszNewValue);
afx_msg BSTR GetDisplayOrder();
afx_msg void SetDisplayOrder(LPCTSTR lpszNewValue);
afx_msg OLE_COLOR GetBackColor();
afx_msg void SetBackColor(OLE_COLOR nNewValue);
afx_msg BOOL GetImageHollow();
afx_msg void SetImageHollow(BOOL bNewValue);
afx_msg OLE_COLOR GetFillColor();
afx_msg void SetFillColor(OLE_COLOR nNewValue);
afx_msg short GetLineDistance();
afx_msg void SetLineDistance(short nNewValue);
afx_msg short GetFontHeight();
afx_msg void SetFontHeight(short nNewValue);
afx_msg short GetFontWidth();
afx_msg void SetFontWidth(short nNewValue);
afx_msg short GetFontEscapement();
afx_msg void SetFontEscapement(short nNewValue);
afx_msg short GetFontOrientation();
afx_msg void SetFontOrientation(short nNewValue);
afx_msg short GetFontWeight();
afx_msg void SetFontWeight(short nNewValue);
afx_msg short GetFontItalic();
afx_msg void SetFontItalic(short nNewValue);
afx_msg short GetFontUnderline();
afx_msg void SetFontUnderline(short nNewValue);
afx_msg short GetFontStrikeOut();
afx_msg void SetFontStrikeOut(short nNewValue);
afx_msg short GetFontCharSet();
afx_msg void SetFontCharSet(short nNewValue);
afx_msg short GetFontOutPrecision();
afx_msg void SetFontOutPrecision(short nNewValue);
afx_msg short GetFontClipPrecision();
afx_msg void SetFontClipPrecision(short nNewValue);
afx_msg short GetFontQuality();
afx_msg void SetFontQuality(short nNewValue);
afx_msg short GetFontPitchAndFamily();
afx_msg void SetFontPitchAndFamily(short nNewValue);
afx_msg BSTR GetFontName();
afx_msg void SetFontName(LPCTSTR lpszNewValue);
//}}AFX_DISPATCH
DECLARE_DISPATCH_MAP()
// Event maps
//{{AFX_EVENT(CDisplayParameterCtrl)
//}}AFX_EVENT
DECLARE_EVENT_MAP()
// Dispatch and event IDs
public:
enum {
//{{AFX_DISP_ID(CDisplayParameterCtrl)
dispidForeColor = 1L,
dispidLineSize = 2L,
dispidIa = 3L,
dispidIb = 4L,
dispidIc = 5L,
dispidIn = 6L,
dispidKw = 7L,
dispidKvar = 8L,
dispidCos = 9L,
dispidUa = 10L,
dispidUb = 11L,
dispidUc = 12L,
dispidUab = 13L,
dispidUbc = 14L,
dispidUca = 15L,
dispidBs1 = 16L,
dispidBs2 = 17L,
dispidDisplayOrder = 18L,
dispidBackColor = 19L,
dispidImageHollow = 20L,
dispidFillColor = 21L,
dispidLineDistance = 22L,
dispidFontHeight = 23L,
dispidFontWidth = 24L,
dispidFontEscapement = 25L,
dispidFontOrientation = 26L,
dispidFontWeight = 27L,
dispidFontItalic = 28L,
dispidFontUnderline = 29L,
dispidFontStrikeOut = 30L,
dispidFontCharSet = 31L,
dispidFontOutPrecision = 32L,
dispidFontClipPrecision = 33L,
dispidFontQuality = 34L,
dispidFontPitchAndFamily = 35L,
dispidFontName = 36L,
//}}AFX_DISP_ID
};
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DISPLAYPARAMETERCTL_H__524A90C4_B363_4816_B3B0_9B37023B1BE4__INCLUDED)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -