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

📄 sam_windowctl.h

📁 制作VC控件教程
💻 H
字号:
#if !defined(AFX_SAM_WINDOWCTL_H__58C72A5F_D633_11D3_9B30_52544C393A8C__INCLUDED_)
#define AFX_SAM_WINDOWCTL_H__58C72A5F_D633_11D3_9B30_52544C393A8C__INCLUDED_

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

// Sam_windowCtl.h : Declaration of the CSam_windowCtrl ActiveX Control class.

/////////////////////////////////////////////////////////////////////////////
// CSam_windowCtrl : See Sam_windowCtl.cpp for implementation.

class CSam_windowCtrl : public COleControl
{
	DECLARE_DYNCREATE(CSam_windowCtrl)

// Constructor
public:
	CSam_windowCtrl();
	CString m_szName,m_szBirth,m_szClass;
	OLE_COLOR m_ocText;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSam_windowCtrl)
	public:
	virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
	virtual void DoPropExchange(CPropExchange* pPX);
	virtual void OnResetState();
	//}}AFX_VIRTUAL

// Implementation
protected:
	~CSam_windowCtrl();

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


// Message maps
	//{{AFX_MSG(CSam_windowCtrl)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

// Dispatch maps
	//{{AFX_DISPATCH(CSam_windowCtrl)
	afx_msg OLE_COLOR GetTextColor();
	afx_msg void SetTextColor(OLE_COLOR nNewValue);
	afx_msg void SetMertial(LPCTSTR pszName, LPCTSTR pszBirth, LPCTSTR pszClass);
	//}}AFX_DISPATCH
	DECLARE_DISPATCH_MAP()

	afx_msg void AboutBox();

// Event maps
	//{{AFX_EVENT(CSam_windowCtrl)
	void FireTimer()
		{FireEvent(eventidTimer,EVENT_PARAM(VTS_NONE));}
	//}}AFX_EVENT
	DECLARE_EVENT_MAP()

// Dispatch and event IDs
public:
	enum {
	//{{AFX_DISP_ID(CSam_windowCtrl)
	dispidTextColor = 1L,
	dispidSetMertial = 2L,
	eventidTimer = 1L,
	//}}AFX_DISP_ID
	};
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SAM_WINDOWCTL_H__58C72A5F_D633_11D3_9B30_52544C393A8C__INCLUDED)

⌨️ 快捷键说明

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