PropPageFrame.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_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 /*AFX_EXT_CLASS*/ CPropPageFrame
00054 {
00055 // Construction/Destruction
00056 public:
00057         CPropPageFrame();
00058         virtual ~CPropPageFrame();
00059 
00060 // Operations
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 // Overridable implementation helpers
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 // Implementation helpers
00259 protected:
00271         void SafeUpdateWindow(LPCRECT lpRect = NULL);
00272 
00273 // Properties
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 } //namespace TreePropSheet
00299 
00300 
00302 
00303 //{{AFX_INSERT_LOCATION}}
00304 // Microsoft Visual C++ fügt unmittelbar vor der vorhergehenden Zeile zusätzliche Deklarationen ein.
00305 
00306 #endif // AFX_PROPPAGEFRAME_H__B968548B_F0B4_4C35_85DD_C44242A9D368__INCLUDED_

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