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

📄 superdigitalclockctl.h

📁 VisualC高级编程技术精粹.rar
💻 H
字号:
#if !defined(AFX_SUPERDIGITALCLOCKCTL_H__1BCF6611_F789_4776_BD03_85AE0060241E__INCLUDED_)
#define AFX_SUPERDIGITALCLOCKCTL_H__1BCF6611_F789_4776_BD03_85AE0060241E__INCLUDED_

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

#include "GenDigitalClock.h"
// SuperDigitalClockCtl.h : Declaration of the CSuperDigitalClockCtrl ActiveX Control class.

/////////////////////////////////////////////////////////////////////////////
// CSuperDigitalClockCtrl : See SuperDigitalClockCtl.cpp for implementation.

class CSuperDigitalClockCtrl : public COleControl
{
	DECLARE_DYNCREATE(CSuperDigitalClockCtrl)

// Constructor
public:
	CSuperDigitalClockCtrl();

	OLE_COLOR m_BackgroundColor;
	OLE_COLOR m_TextColor;
	OLE_COLOR m_LinesColor;
	CGenDigitalClock GDigitalClock;

	CRect rect;

	short m_sMode;
	short m_sMinute;
	short m_sHour;
	short m_sSecond;

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

// Implementation
protected:
	~CSuperDigitalClockCtrl();

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

// Message maps
	//{{AFX_MSG(CSuperDigitalClockCtrl)
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

// Dispatch maps
	//{{AFX_DISPATCH(CSuperDigitalClockCtrl)
	afx_msg void SetColors(OLE_COLOR BackgroundColor, OLE_COLOR LinesColor, OLE_COLOR TextColor);
	afx_msg void SetMode(short sMode);
	afx_msg void SetTime(short sHour, short sMinute, short sSecond);
	//}}AFX_DISPATCH
	DECLARE_DISPATCH_MAP()

	afx_msg void AboutBox();

// Event maps
	//{{AFX_EVENT(CSuperDigitalClockCtrl)
		// NOTE - ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_EVENT
	DECLARE_EVENT_MAP()

// Dispatch and event IDs
public:
	enum {
	//{{AFX_DISP_ID(CSuperDigitalClockCtrl)
	dispidSetColors = 1L,
	dispidSetMode = 2L,
	dispidSetTime = 3L,
	//}}AFX_DISP_ID
	};
};

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

#endif // !defined(AFX_SUPERDIGITALCLOCKCTL_H__1BCF6611_F789_4776_BD03_85AE0060241E__INCLUDED)

⌨️ 快捷键说明

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