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