1 /********************************************************************
3 * Copyright (c) 2002 Sven Wiegand <mail@sven-wiegand.de>
5 * You can use this and modify this in any way you want,
6 * BUT LEAVE THIS HEADER INTACT.
8 * Redistribution is appreciated.
18 *********************************************************************/
21 #if !defined(AFX_PROPPAGEFRAMEDEFAULT_H__5C5B7AC9_2DF5_4E8C_8F5E_DE2CC04BBED7__INCLUDED_)
22 #define AFX_PROPPAGEFRAMEDEFAULT_H__5C5B7AC9_2DF5_4E8C_8F5E_DE2CC04BBED7__INCLUDED_
26 #endif // _MSC_VER > 1000
28 #include "PropPageFrame.h"
31 namespace TreePropSheet
36 An implementation of CPropPageFrame, that works well for Windows XP
37 styled systems and older windows versions (without themes).
41 class /*AFX_EXT_CLASS*/ CPropPageFrameDefault
: public CWnd
,
44 // construction/destruction
46 CPropPageFrameDefault();
47 virtual ~CPropPageFrameDefault();
54 virtual BOOL
Create(DWORD dwWindowStyle
, const RECT
&rect
, CWnd
*pwndParent
, UINT nID
);
55 virtual CWnd
* GetWnd();
56 virtual void SetCaption(LPCTSTR lpszCaption
, HICON hIcon
= NULL
);
59 virtual CRect
CalcMsgArea();
60 virtual CRect
CalcCaptionArea();
61 virtual void DrawCaption(CDC
*pDc
, CRect rect
, LPCTSTR lpszCaption
, HICON hIcon
);
63 // Implementation helpers
66 Fills a rectangular area with a gradient color starting at the left
67 side with the color clrLeft and ending at the right sight with the
71 Device context to draw the rectangle in.
73 Rectangular area to fill.
75 Color on the left side.
77 Color on the right side.
79 void FillGradientRectH(CDC
*pDc
, const RECT
&rect
, COLORREF clrLeft
, COLORREF clrRight
);
82 Returns TRUE if Windows XP theme support is available, FALSE
85 BOOL
ThemeSupport() const;
88 //{{AFX_VIRTUAL(CPropPageFrameDefault)
93 //{{AFX_MSG(CPropPageFrameDefault)
94 afx_msg
void OnPaint();
95 afx_msg BOOL
OnEraseBkgnd(CDC
* pDC
);
102 Image list that contains only the current icon or nothing if there
109 } //namespace TreePropSheet
112 /////////////////////////////////////////////////////////////////////////////
114 //{{AFX_INSERT_LOCATION}}
115 // Microsoft Visual C++ fügt unmittelbar vor der vorhergehenden Zeile zusätzliche Deklarationen ein.
117 #endif // AFX_PROPPAGEFRAMEDEFAULT_H__5C5B7AC9_2DF5_4E8C_8F5E_DE2CC04BBED7__INCLUDED_