www.pudn.com > 2007112823521925.rar > 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