72 lines
3.2 KiB
C++
72 lines
3.2 KiB
C++
//-------------------------------------------------------------------------
|
|
// Summary:
|
|
// CAppearanceSetVisualStudio2005 is a CAppearanceSetPropertyPage2003 derived
|
|
// class that represents the Visual Studio 2005 tab appearance.
|
|
// Remarks:
|
|
// To use the Visual Studio appearance, SetAppearance is used to apply
|
|
// the xtpTabThemeVisualStudio2005 XTPTabAppearanceStyle.
|
|
//
|
|
// See Also: XTPTabColorStyle, XTPTabAppearanceStyle, SetAppearance, GetAppearance, GetAppearanceSet,
|
|
// SetColor, GetColor, GetColorSet, SetColorSet, SetAppearanceSet
|
|
//-------------------------------------------------------------------------
|
|
class _XTP_EXT_CLASS CAppearanceSetVisualStudio2005 : public CAppearanceSetPropertyPage2003
|
|
{
|
|
public:
|
|
//-------------------------------------------------------------------------
|
|
// Summary:
|
|
// Constructs a CAppearanceSetVisualStudio2005 object.
|
|
//-------------------------------------------------------------------------
|
|
CAppearanceSetVisualStudio2005()
|
|
{
|
|
m_bButtonsReverseZOrder = 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.
|
|
// See Also:: CXTPTabPaintManager::DrawTabControlEx, CXTPTabPaintManager::DrawSingleButtonIconAndText
|
|
//-----------------------------------------------------------------------
|
|
virtual void DrawSingleButton(CDC* pDC, CXTPTabManagerItem* pItem);
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// This method is called to get the top, left, right, and bottom
|
|
// tab header margins.
|
|
// Returns:
|
|
// CRect struct containing the left, top, right, and bottom margins
|
|
// of the tab header. This is the margin (space) placed around the
|
|
// tab buttons inside the tab header.
|
|
// Remarks:
|
|
// The CRect structure will contain the margins of the tab header.
|
|
// CXTPTabPaintManagerTheme::m_rcHeaderMargin contains
|
|
// these margins.
|
|
//
|
|
// See Also: CXTPTabPaintManagerTheme::m_rcHeaderMargin, CXTPTabPaintManager::GetHeaderRect
|
|
//-----------------------------------------------------------------------
|
|
virtual CRect GetHeaderMargin()
|
|
{
|
|
return CRect(m_rcHeaderMargin.left + m_nButtonHeight / 2, m_rcHeaderMargin.top, m_rcHeaderMargin.right, m_rcHeaderMargin.bottom);
|
|
}
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// This method called to get bounding rectangle of item that was drawn
|
|
// Parameters:
|
|
// pItem - Item to test
|
|
// Returns: Bounding rectangle of drawing item
|
|
// See Also: CXTPTabManagerItem::GetRect
|
|
//-----------------------------------------------------------------------
|
|
virtual CRect GetButtonDrawRect(const CXTPTabManagerItem* pItem);
|
|
};
|