PropPageFrameDefault.h

00001 /********************************************************************
00002 *
00003 * Copyright (c) 2002 Sven Wiegand <[email protected]>
00004 *
00005 * You can use this and modify this in any way you want,
00006 * BUT LEAVE THIS HEADER INTACT.
00007 *
00008 * Redistribution is appreciated.
00009 *
00010 * $Workfile:$
00011 * $Revision: 1.2 $
00012 * $Modtime:$
00013 * $Author: gabest $
00014 *
00015 * Revision History:
00016 *       $History:$
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 /*AFX_EXT_CLASS*/ CPropPageFrameDefault : public CWnd,
00043                                             public CPropPageFrame
00044 {
00045 // construction/destruction
00046 public:
00047         CPropPageFrameDefault();
00048         virtual ~CPropPageFrameDefault();
00049 
00050 // operations
00051 public:
00052 
00053 // overridings
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 // Implementation helpers
00066 protected:
00081         void FillGradientRectH(CDC *pDc, const RECT &rect, COLORREF clrLeft, COLORREF clrRight);
00082 
00087         BOOL ThemeSupport() const;
00088 
00089 protected:
00090         //{{AFX_VIRTUAL(CPropPageFrameDefault)
00091         //}}AFX_VIRTUAL
00092 
00093 // message handlers
00094 protected:
00095         //{{AFX_MSG(CPropPageFrameDefault)
00096         afx_msg void OnPaint();
00097         afx_msg BOOL OnEraseBkgnd(CDC* pDC);
00098         //}}AFX_MSG
00099         DECLARE_MESSAGE_MAP()
00100 
00101 // attributes
00102 protected:
00107         CImageList m_Images;
00108 };
00109 
00110 
00111 } //namespace TreePropSheet
00112 
00113 
00115 
00116 //{{AFX_INSERT_LOCATION}}
00117 // Microsoft Visual C++ fügt unmittelbar vor der vorhergehenden Zeile zusätzliche Deklarationen ein.
00118 
00119 #endif // AFX_PROPPAGEFRAMEDEFAULT_H__5C5B7AC9_2DF5_4E8C_8F5E_DE2CC04BBED7__INCLUDED_

Generated on Tue Dec 13 14:47:58 2005 for guliverkli by  doxygen 1.4.5