📄 caption.h
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -