?? proppageframe.h
字號:
#if !defined(AFX_PROPPAGEFRAME_H__B968548B_F0B4_4C35_85DD_C44242A9D368__INCLUDED_)
#define AFX_PROPPAGEFRAME_H__B968548B_F0B4_4C35_85DD_C44242A9D368__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CPropPageFrame:public CWnd
{
// Construction/Destruction
public:
CPropPageFrame();
virtual ~CPropPageFrame();
// Operations
public:
//以漸變色填充標題欄
void FillGradientRectH(CDC *pDc, const RECT &rect, COLORREF clrLeft, COLORREF clrRight);
//必須使用指定的屬性創建窗口
BOOL Create(DWORD dwWindowStyle, const RECT &rect, CWnd *pwndParent, UINT nID);
//返回窗口對象的指針,該對象表示了框架
CWnd* GetWnd();
//啟用或禁用頁標題。
void ShowCaption(BOOL bEnable);
BOOL GetShowCaption() const;
//設置標題的像素高度
void SetCaptionHeight(int nCaptionHeight);
//返回標題的像素高度
int GetCaptionHeight() const;
//為標題文本設置圖標
void SetCaption(LPCTSTR lpszCaption, HICON hIcon = NULL);
//返回標題的文本,
CString GetCaption(HICON *pIcon = NULL) const;
//設置顯示的文本
void SetMsgText(LPCTSTR lpszMsg);
//返回當前顯示的文
CString GetMsgText() const;
//指定繪制文本的格式
void SetMsgFormat(DWORD dwFormat);
//獲取繪制的文本的格式
DWORD GetMsgFormat() const;
// Overridable implementation helpers
protected:
//繪制整個框架包括標題和文本
void Draw(CDC *pDc);
CRect CalcMsgArea();
//使用指定的格式繪制文本
void DrawMsg(CDC *pDc, CRect rect, LPCTSTR lpszMsg, DWORD dwFormat);
//計算標題區域
CRect CalcCaptionArea();
//繪制標題
void DrawCaption(CDC *pDc, CRect rect, LPCTSTR lpszCaption, HICON hIcon);
// Implementation helpers
protected:
//安全地更新窗口區域
void SafeUpdateWindow(LPCRECT lpRect = NULL);
protected:
//{{AFX_VIRTUAL(CPropPageFrame)
//}}AFX_VIRTUAL
// message handlers
protected:
//{{AFX_MSG(CPropPageFrame)
afx_msg void OnPaint();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
// Properties
private:
//繪制標題的標志
BOOL m_bShowCaption;
//標題的高度
int m_nCaptionHeight;
//標題內容
CString m_strCaption;
//標題的圖標,可以為NULL
HICON m_hCaptionIcon;
// 顯示的消息
CString m_strMsg;
//繪制消息文本m_strMsg時所使用的格式
DWORD m_dwMsgFormat;
CImageList m_Images;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ ft unmittelbar vor der vorhergehenden Zeile zuszliche Deklarationen ein.
#endif // AFX_PROPPAGEFRAME_H__B968548B_F0B4_4C35_85DD_C44242A9D368__INCLUDED_
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -