00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #if !defined(AFX_PROPPAGEFRAME_H__B968548B_F0B4_4C35_85DD_C44242A9D368__INCLUDED_)
00022 #define AFX_PROPPAGEFRAME_H__B968548B_F0B4_4C35_85DD_C44242A9D368__INCLUDED_
00023
00024 #if _MSC_VER > 1000
00025 #pragma once
00026 #endif // _MSC_VER > 1000
00027
00028
00029 namespace TreePropSheet
00030 {
00031
00032
00053 class CPropPageFrame
00054 {
00055
00056 public:
00057 CPropPageFrame();
00058 virtual ~CPropPageFrame();
00059
00060
00061 public:
00077 virtual BOOL Create(DWORD dwWindowStyle, const RECT &rect, CWnd *pwndParent, UINT nID) = 0;
00078
00082 virtual CWnd* GetWnd() = 0;
00083
00090 virtual void ShowCaption(BOOL bEnable);
00091
00095 BOOL GetShowCaption() const;
00096
00104 virtual void SetCaptionHeight(int nCaptionHeight);
00105
00110 int GetCaptionHeight() const;
00111
00123 virtual void SetCaption(LPCTSTR lpszCaption, HICON hIcon = NULL);
00124
00138 CString GetCaption(HICON *pIcon = NULL) const;
00139
00146 virtual void SetMsgText(LPCTSTR lpszMsg);
00147
00151 CString GetMsgText() const;
00152
00163 virtual void SetMsgFormat(DWORD dwFormat);
00164
00170 DWORD GetMsgFormat() const;
00171
00172
00173 protected:
00189 virtual void Draw(CDC *pDc);
00190
00200 virtual CRect CalcMsgArea();
00201
00218 virtual void DrawMsg(CDC *pDc, CRect rect, LPCTSTR lpszMsg, DWORD dwFormat);
00219
00240 virtual CRect CalcCaptionArea();
00241
00256 virtual void DrawCaption(CDC *pDc, CRect rect, LPCTSTR lpszCaption, HICON hIcon);
00257
00258
00259 protected:
00271 void SafeUpdateWindow(LPCRECT lpRect = NULL);
00272
00273
00274 private:
00276 BOOL m_bShowCaption;
00277
00279 int m_nCaptionHeight;
00280
00282 CString m_strCaption;
00283
00288 HICON m_hCaptionIcon;
00289
00291 CString m_strMsg;
00292
00294 DWORD m_dwMsgFormat;
00295 };
00296
00297
00298 }
00299
00300
00302
00303
00304
00305
00306 #endif // AFX_PROPPAGEFRAME_H__B968548B_F0B4_4C35_85DD_C44242A9D368__INCLUDED_