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

📄 propertysheetwithlogodlg.h

📁 visual c++ 实例编程
💻 H
字号:
#if !defined(AFX_PROPERTYSHEETWITHLOGODLG_H__D17EA810_E6A4_11D1_BB81_0040F684401F__INCLUDED_)
#define AFX_PROPERTYSHEETWITHLOGODLG_H__D17EA810_E6A4_11D1_BB81_0040F684401F__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// PropertySheetWithLogoDlg.h 
// 一个带徽标的属性表

/////////////////////////////////////////////////////////////////////////////
// CPropertySheetWithLogoDlg

class CPropertySheetWithLogoDlg : public CPropertySheet
{
	DECLARE_DYNAMIC(CPropertySheetWithLogoDlg)

// Construction
public:
	CPropertySheetWithLogoDlg(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);


// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPropertySheetWithLogoDlg)
	public:
	virtual BOOL OnInitDialog();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	//}}AFX_VIRTUAL

// Implementation
public:
	void SetLogoFont(CString Name, int nHeight = 24, int nWeight = FW_BOLD,
		BYTE bItalic = true, BYTE bUnderline = false);
	void SetLogoText(CString Text);
	void SetColor(COLORREF TextColor,COLORREF ShadowColor);
	virtual ~CPropertySheetWithLogoDlg();

	// Generated message map functions
protected:
	void SetTipText(CString String);
	virtual void GoRun();

	//{{AFX_MSG(CPropertySheetWithLogoDlg)
	afx_msg void OnPaint();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	CFont 	m_fontLogo; //徽标使用字体
	CString m_LogoText; //徽标文本
	COLORREF TextColor;	  //文本颜色
	COLORREF ShadowColor; //文本阴影颜色
	CRect	TextRect;
	CToolTipCtrl m_ToolTip;
	CString TipText;		//提示文本
};

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

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

#endif // !defined(AFX_PROPERTYSHEETWITHLOGODLG_H__D17EA810_E6A4_11D1_BB81_0040F684401F__INCLUDED_)

⌨️ 快捷键说明

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