#include <PropPageFrameDefault.h>
Inheritance diagram for TreePropSheet::CPropPageFrameDefault:
Public Member Functions | |
CPropPageFrameDefault () | |
virtual | ~CPropPageFrameDefault () |
virtual BOOL | Create (DWORD dwWindowStyle, const RECT &rect, CWnd *pwndParent, UINT nID) |
virtual CWnd * | GetWnd () |
virtual void | SetCaption (LPCTSTR lpszCaption, HICON hIcon=NULL) |
Protected Member Functions | |
virtual CRect | CalcMsgArea () |
virtual CRect | CalcCaptionArea () |
virtual void | DrawCaption (CDC *pDc, CRect rect, LPCTSTR lpszCaption, HICON hIcon) |
void | FillGradientRectH (CDC *pDc, const RECT &rect, COLORREF clrLeft, COLORREF clrRight) |
BOOL | ThemeSupport () const |
afx_msg void | OnPaint () |
afx_msg BOOL | OnEraseBkgnd (CDC *pDC) |
Protected Attributes | |
CImageList | m_Images |
Definition at line 42 of file PropPageFrameDefault.h.
|
Calculates the caption area. The caption area is the rectangular range, the current page's caption should be drawn in. The caption can be enabled or disabled using the ShowCaption() method. This method should return an empty rect, if the caption is disabled. If the caption is enabled the height of the rect should be as large, as specified by the latest call to the SetCaptionHeight() method. The rectangle, returned by this method will be passed to the DrawCaption() method to draw the caption. If the caption is enabled currently, this default implementation returns a rectangle, that has the width of the client area and the height, specified by the latest call to SetCaptionHeight(), starting and y-position 0. If the caption is disabled at the moment, this method returns an empty rectangle with the width of the client area. Reimplemented from TreePropSheet::CPropPageFrame. Definition at line 258 of file PropPageFrameDefault.cpp. References TreePropSheet::CThemeLib::CloseThemeData, TreePropSheet::CPropPageFrame::GetCaptionHeight(), TreePropSheet::CPropPageFrame::GetShowCaption(), TreePropSheet::CThemeLib::GetThemeBackgroundContentRect, TreePropSheet::CThemeLib::IsAvailable(), TreePropSheet::CThemeLib::IsThemeActive(), and TreePropSheet::CThemeLib::OpenThemeData(). |
|
Calculates the area, the message, set by SetMsgText() should be displayed in. The returned rectangle (client coordinates) will be passed to DrawMsg(). This default implementation calls the CalcCaptionArea() method, substracts the returned rectangle from the client area and returns the result. Reimplemented from TreePropSheet::CPropPageFrame. Definition at line 231 of file PropPageFrameDefault.cpp. References TreePropSheet::CThemeLib::CloseThemeData, TreePropSheet::CPropPageFrame::GetCaptionHeight(), TreePropSheet::CPropPageFrame::GetShowCaption(), TreePropSheet::CThemeLib::GetThemeBackgroundContentRect, TreePropSheet::CThemeLib::IsAvailable(), TreePropSheet::CThemeLib::IsThemeActive(), and TreePropSheet::CThemeLib::OpenThemeData(). |
|
Has to create a window with the specified properties.
Implements TreePropSheet::CPropPageFrame. Definition at line 190 of file PropPageFrameDefault.cpp. |
|
Draws the caption. This default implementation draws nothing.
Reimplemented from TreePropSheet::CPropPageFrame. Definition at line 292 of file PropPageFrameDefault.cpp. References FillGradientRectH(), and m_Images. |
|
Fills a rectangular area with a gradient color starting at the left side with the color clrLeft and ending at the right sight with the color clrRight.
Definition at line 336 of file PropPageFrameDefault.cpp. Referenced by DrawCaption(). |
|
Returns a pointer to the window object, that represents the frame. Implements TreePropSheet::CPropPageFrame. Definition at line 198 of file PropPageFrameDefault.cpp. |
|
Sets caption text an icon. This default implementation calls the SafeUpdateWindow() method with the caption rectangle, to force it to be redrawn.
Reimplemented from TreePropSheet::CPropPageFrame. Definition at line 203 of file PropPageFrameDefault.cpp. References m_Images, and TreePropSheet::CPropPageFrame::SetCaption(). |
|
Returns TRUE if Windows XP theme support is available, FALSE otherwise. |
|
Image list that contains only the current icon or nothing if there is no icon. Definition at line 107 of file PropPageFrameDefault.h. Referenced by DrawCaption(), SetCaption(), and ~CPropPageFrameDefault(). |