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

📄 zstatic.h

📁 短信网管的原代码。用于与sp通信
💻 H
字号:
////////////////////////////////////////////////////////////
//  CZStatic 类
//  功能:实现Static控件的字体颜色的及大小改变
//  创建日期:2001/8/1
//  修改日期:2001/8/1
//  
/////////////////////////////////////////////////////////////
#if !defined(AFX_ZSTATIC_H__1C65F612_98CF_4E98_93CB_0AF1DC852320__INCLUDED_)
#define AFX_ZSTATIC_H__1C65F612_98CF_4E98_93CB_0AF1DC852320__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ZStatic.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CZStatic window

class CZStatic : public CStatic
{
// Construction
public:
	CZStatic();

// Attributes
public:	
	//设置字体的大小
	void SetFontSize(int nSize);
	//设置字体名称
	void SetFontName(LPCTSTR szFontName);
	//设置字体颜色
	void SetFontColor(COLORREF fColor);
	//设置标题文本
	void SetText(LPCTSTR szText);
private:
	//字体的颜色
	COLORREF m_Color;	
	//字体的大小
	int     m_FontSize;
	//字体的名称
	char    m_szFontName[56];
	CFont   m_Font;
	//显示的文本
	CString m_Text;
// Operations
public:
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CZStatic)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CZStatic();

	// Generated message map functions
protected:
	//{{AFX_MSG(CZStatic)
	afx_msg void OnPaint();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_ZSTATIC_H__1C65F612_98CF_4E98_93CB_0AF1DC852320__INCLUDED_)

⌨️ 快捷键说明

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