75 lines
3.1 KiB
C++
75 lines
3.1 KiB
C++
//-------------------------------------------------------------------------
|
|
// Summary:
|
|
// CAppearanceSetPropertyPageFlat is a CXTPTabThemeFlat derived
|
|
// class that represents the Office 2000 Flat tab appearance.
|
|
// Remarks:
|
|
// To use the Office 2000 Flat appearance, SetAppearance is used to apply
|
|
// the xtpTabAppearancePropertyPageFlat XTPTabAppearanceStyle.
|
|
//
|
|
// CAppearanceSetPropertyPageSelected supports the following XTPTabColorStyle:
|
|
// * <b>xtpTabColorDefault</b> Default color style.
|
|
// * <b>xtpTabColorVisualStudio2003</b> Visual Studio color style.
|
|
// * <b>xtpTabColorOffice2003</b> Office 2003 color style.
|
|
//
|
|
// See Also: XTPTabColorStyle, XTPTabAppearanceStyle, SetAppearance, GetAppearance, GetAppearanceSet,
|
|
// SetColor, GetColor, GetColorSet, SetColorSet, SetAppearanceSet
|
|
//-------------------------------------------------------------------------
|
|
class _XTP_EXT_CLASS CAppearanceSetPropertyPageFlat : public CXTPTabThemeFlat
|
|
{
|
|
public:
|
|
|
|
//-------------------------------------------------------------------------
|
|
// Summary:
|
|
// Constructs a CAppearanceSetPropertyPageFlat object.
|
|
// Remarks:
|
|
// By default, m_bBlurPoints is TRUE. This will smooth the edges
|
|
// of the tabs.
|
|
//-------------------------------------------------------------------------
|
|
CAppearanceSetPropertyPageFlat()
|
|
{
|
|
m_bBlurPoints = TRUE;
|
|
m_bVisualStudio2005Style = FALSE;
|
|
m_bDrawNormalTab = TRUE;
|
|
}
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// This method is called to draw a single tab button in the tab
|
|
// client header area.
|
|
// Parameters:
|
|
// pDC - Pointer to a valid device context.
|
|
// pItem - Tab button to draw.
|
|
// Remarks:
|
|
// This method will draw a single tab button. This method only
|
|
// draws the button, no text or icon is added.
|
|
//
|
|
// DrawSingleButton calls CXTPTabPaintManager::DrawSingleButtonIconAndText
|
|
// after the button is drawn. This is called to draw the button's
|
|
// icon and text.
|
|
//
|
|
// If m_bBlurPoints is TRUE, then the corners of the tabs will be
|
|
// smoothed.
|
|
//
|
|
// See Also:: CXTPTabPaintManager::DrawTabControlEx, CXTPTabPaintManager::DrawSingleButtonIconAndText, m_bBlurPoints
|
|
//-----------------------------------------------------------------------
|
|
virtual void DrawSingleButton(CDC* pDC, CXTPTabManagerItem* pItem);
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// Call this member to get the default XTPTabColorStyle for this appearance.
|
|
// Returns:
|
|
// xtpTabColorDefault
|
|
// See Also: GetSupportedColorSets
|
|
//-----------------------------------------------------------------------
|
|
virtual XTPTabColorStyle GetDefaultColorSet() { return xtpTabColorDefault; }
|
|
|
|
void BlurPoint(CDC* pDC, int x, int y, COLORREF clr, int nAlpha);
|
|
void BlurTab(CDC* pDC, CRect rcTab, COLORREF clrBackground, COLORREF clrBorder, XTPTabPosition tabPosition);
|
|
|
|
public:
|
|
|
|
BOOL m_bBlurPoints; // TRUE to smooth corners of flat tabs.
|
|
BOOL m_bVisualStudio2005Style; // TRUE to draw with Visual Studio 2005 style
|
|
BOOL m_bDrawNormalTab;
|
|
};
|