caption.h

来自「一个完整的数字硬盘录像机系统软件」· C头文件 代码 · 共 53 行

H
53
字号
// CJCaption.h : header file
/////////////////////////////////////////////////////////////////////////////
#ifndef __CAPTION_H__
#define __CAPTION_H__

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

/////////////////////////////////////////////////////////////////////////////
// CCaption window

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

// Attributes
public:
protected:
	COLORREF		m_clrFont;
	CFont*			m_pFont;
	HICON			m_hIcon;
// Operations
public:
	void SetFontColor(COLORREF clr);
	void SetCaptionFont(CFont* pFont);
	void SetCaptionText(LPCTSTR lpszString, HICON hIcon=NULL);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCaption)
	//}}AFX_VIRTUAL

// Implementation
public:
	void PaintBanner(CRect rect, CDC *pDC);
	CFont m_Font;
	virtual ~CCaption();

	// Generated message map functions
protected:
	//{{AFX_MSG(CCaption)
	afx_msg void OnPaint();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////
#endif 

⌨️ 快捷键说明

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