⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shortcontrollerctl.h

📁 VC写的用于电力监控系统中的一个ActiveX控件
💻 H
字号:
#if !defined(AFX_SHORTCONTROLLERCTL_H__39360559_567F_4AF6_9CF4_DECEF26FB41C__INCLUDED_)
#define AFX_SHORTCONTROLLERCTL_H__39360559_567F_4AF6_9CF4_DECEF26FB41C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

// ShortControllerCtl.h : Declaration of the CShortControllerCtrl ActiveX Control class.

/////////////////////////////////////////////////////////////////////////////
// CShortControllerCtrl : See ShortControllerCtl.cpp for implementation.

class CShortControllerCtrl : public COleControl
{
	DECLARE_DYNCREATE(CShortControllerCtrl)

// Constructor
public:
	CShortControllerCtrl();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CShortControllerCtrl)
	public:
	virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
	virtual void DoPropExchange(CPropExchange* pPX);
	virtual void OnResetState();
	//}}AFX_VIRTUAL

// Implementation
protected:
	OLE_COLOR m_rightColor;
	OLE_COLOR m_bottomColor;
	OLE_COLOR m_topColor;
	BOOL m_bOnOff;
	OLE_COLOR m_fillColor;
	short m_lineSize;
	BOOL m_bImageHollow;
	OLE_COLOR m_foreColor;
	OLE_COLOR m_backColor;
	~CShortControllerCtrl();

	DECLARE_OLECREATE_EX(CShortControllerCtrl)    // Class factory and guid
	DECLARE_OLETYPELIB(CShortControllerCtrl)      // GetTypeInfo
	DECLARE_PROPPAGEIDS(CShortControllerCtrl)     // Property page IDs
	DECLARE_OLECTLTYPE(CShortControllerCtrl)		// Type name and misc status

// Message maps
	//{{AFX_MSG(CShortControllerCtrl)
		// NOTE - ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	afx_msg LRESULT OnMyMessage101(WPARAM wParam, LPARAM lParam);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

// Dispatch maps
	//{{AFX_DISPATCH(CShortControllerCtrl)
	afx_msg OLE_COLOR GetBackColor();
	afx_msg void SetBackColor(OLE_COLOR nNewValue);
	afx_msg OLE_COLOR GetForeColor();
	afx_msg void SetForeColor(OLE_COLOR nNewValue);
	afx_msg OLE_COLOR GetFillColor();
	afx_msg void SetFillColor(OLE_COLOR nNewValue);
	afx_msg BOOL GetImageHollow();
	afx_msg void SetImageHollow(BOOL bNewValue);
	afx_msg short GetLineSize();
	afx_msg void SetLineSize(short nNewValue);
	afx_msg BOOL GetOnOff();
	afx_msg void SetOnOff(BOOL bNewValue);
	afx_msg OLE_COLOR GetTopColor();
	afx_msg void SetTopColor(OLE_COLOR nNewValue);
	afx_msg OLE_COLOR GetBottomColor();
	afx_msg void SetBottomColor(OLE_COLOR nNewValue);
	afx_msg OLE_COLOR GetRightColor();
	afx_msg void SetRightColor(OLE_COLOR nNewValue);
	//}}AFX_DISPATCH
	DECLARE_DISPATCH_MAP()

// Event maps
	//{{AFX_EVENT(CShortControllerCtrl)
	//}}AFX_EVENT
	DECLARE_EVENT_MAP()

// Dispatch and event IDs
public:
	enum {
	//{{AFX_DISP_ID(CShortControllerCtrl)
	dispidBackColor = 1L,
	dispidForeColor = 2L,
	dispidFillColor = 3L,
	dispidImageHollow = 4L,
	dispidLineSize = 5L,
	dispidOnOff = 6L,
	dispidTopColor = 7L,
	dispidBottomColor = 8L,
	dispidRightColor = 9L,
	//}}AFX_DISP_ID
	};
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SHORTCONTROLLERCTL_H__39360559_567F_4AF6_9CF4_DECEF26FB41C__INCLUDED)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -