00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #if !defined(AFX_PROPPAGEFRAMEDEFAULT_H__5C5B7AC9_2DF5_4E8C_8F5E_DE2CC04BBED7__INCLUDED_)
00022 #define AFX_PROPPAGEFRAMEDEFAULT_H__5C5B7AC9_2DF5_4E8C_8F5E_DE2CC04BBED7__INCLUDED_
00023
00024 #if _MSC_VER > 1000
00025 #pragma once
00026 #endif // _MSC_VER > 1000
00027
00028 #include "PropPageFrame.h"
00029 #include <afxcmn.h>
00030
00031
00032 namespace TreePropSheet
00033 {
00034
00035
00042 class CPropPageFrameDefault : public CWnd,
00043 public CPropPageFrame
00044 {
00045
00046 public:
00047 CPropPageFrameDefault();
00048 virtual ~CPropPageFrameDefault();
00049
00050
00051 public:
00052
00053
00054 public:
00055 virtual BOOL Create(DWORD dwWindowStyle, const RECT &rect, CWnd *pwndParent, UINT nID);
00056 virtual CWnd* GetWnd();
00057 virtual void SetCaption(LPCTSTR lpszCaption, HICON hIcon = NULL);
00058
00059
00060 protected:
00061 virtual CRect CalcMsgArea();
00062 virtual CRect CalcCaptionArea();
00063 virtual void DrawCaption(CDC *pDc, CRect rect, LPCTSTR lpszCaption, HICON hIcon);
00064
00065
00066 protected:
00081 void FillGradientRectH(CDC *pDc, const RECT &rect, COLORREF clrLeft, COLORREF clrRight);
00082
00087 BOOL ThemeSupport() const;
00088
00089 protected:
00090
00091
00092
00093
00094 protected:
00095
00096 afx_msg void OnPaint();
00097 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
00098
00099 DECLARE_MESSAGE_MAP()
00100
00101
00102 protected:
00107 CImageList m_Images;
00108 };
00109
00110
00111 }
00112
00113
00115
00116
00117
00118
00119 #endif // AFX_PROPPAGEFRAMEDEFAULT_H__5C5B7AC9_2DF5_4E8C_8F5E_DE2CC04BBED7__INCLUDED_