113 lines
4.9 KiB
C++
113 lines
4.9 KiB
C++
class _XTP_EXT_CLASS CXTPDockingPaneOffice2013Theme : public CXTPDockingPanePaintManager
|
|
{
|
|
// Construction / Destruction
|
|
public:
|
|
|
|
//-------------------------------------------------------------------------
|
|
// Summary:
|
|
// Constructs a CXTPDockingPaneOffice2013Theme object.
|
|
//-------------------------------------------------------------------------
|
|
CXTPDockingPaneOffice2013Theme();
|
|
|
|
//-------------------------------------------------------------------------
|
|
// Summary:
|
|
// Destroys a CXTPDockingPaneOffice2013Theme object, handles cleanup and deallocation.
|
|
//-------------------------------------------------------------------------
|
|
virtual ~CXTPDockingPaneOffice2013Theme();
|
|
|
|
public:
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// This method is called to refresh the visual metrics of the pane.
|
|
//-----------------------------------------------------------------------
|
|
virtual void RefreshMetrics();
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// Call this method to get pane's caption rectangle.
|
|
// Parameters:
|
|
// pPane - Side Panel container to get caption CRECT.
|
|
// Returns:
|
|
// Bounding rectangle of the side panel's caption.
|
|
//-----------------------------------------------------------------------
|
|
virtual CRect GetPaneCaptionRect(const CXTPDockingPaneSidePanel *pPane);
|
|
|
|
virtual void AdjustClientRect(CXTPDockingPaneTabbedContainer* pPane, CRect& rc, BOOL bApply);
|
|
virtual void AdjustCaptionRect(const CXTPDockingPaneTabbedContainer* pPane, CRect& rc);
|
|
|
|
// Drawing methods
|
|
public:
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// Override this method to draw splitter.
|
|
// Parameters:
|
|
// pDC - Pointer to a valid device context
|
|
// pSplitter - Pointer to splitter window
|
|
//-----------------------------------------------------------------------
|
|
virtual void DrawSplitter(CDC *pDC, CXTPDockingPaneSplitterWnd *pSplitter);
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// Override this member function to draw a caption.
|
|
// Parameters:
|
|
// pDC - Reference to the device context in which to draw.
|
|
// pPane - Pointer to the tabbed container.
|
|
// rc - Client rectangle of the tabbed container.
|
|
//-----------------------------------------------------------------------
|
|
virtual void DrawCaption(CDC *pDC, CXTPDockingPaneTabbedContainer *pPane, CRect rc);
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// Override this member function to draw a tabbed container.
|
|
// Parameters:
|
|
// pDC - Reference to the device context in which to draw.
|
|
// pPane - Pointer to the tabbed container.
|
|
// rc - Client rectangle of the tabbed container.
|
|
//-----------------------------------------------------------------------
|
|
virtual void DrawPane(CDC *pDC, CXTPDockingPaneTabbedContainer *pPane, CRect rc);
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// Call this method to draw frame of floating window
|
|
// Parameters:
|
|
// pDC - Pointer to a valid device context
|
|
// pPane - Floating window pointer
|
|
// rc - Client rectangle of floating frame
|
|
//-----------------------------------------------------------------------
|
|
virtual void DrawFloatingFrame(CDC *pDC, CXTPDockingPaneMiniWnd *pPane, CRect rc);
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// Override this member function to draw the side panel.
|
|
// Parameters:
|
|
// pDC - Reference to the device context in which to draw.
|
|
// pPane - Pointer to the side panel.
|
|
// rc - Client rectangle of the side panel.
|
|
//-----------------------------------------------------------------------
|
|
virtual void DrawSidePanel(CDC *pDC, CXTPDockingPaneSidePanel *pPane, CRect rc);
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// Override this member function to draw button of tabbed caption.
|
|
// Parameters:
|
|
// pDC - Pointer to a valid device context
|
|
// pButton - Button pointer need to draw.
|
|
// clrButton - Color of button text.
|
|
//-----------------------------------------------------------------------
|
|
virtual void DrawCaptionButton(CDC *pDC, CXTPDockingPaneCaptionButton *pButton, COLORREF clrButton);
|
|
|
|
public:
|
|
|
|
CXTPPaintManagerColor m_clrBorder; // Border color
|
|
CXTPPaintManagerColor m_clrBackground; // Background color
|
|
CXTPPaintManagerColor m_clrSplitter; // Splitter color
|
|
CXTPPaintManagerColor m_clrText; // Text color
|
|
CString m_strFontFace; // Font face name
|
|
int m_nFontSize; // Font size in points
|
|
|
|
CXTPPaintManagerColor m_clrCaptionButtonNormal;
|
|
CXTPPaintManagerColor m_clrCaptionButtonHot;
|
|
CXTPPaintManagerColor m_clrCaptionButtonPressed;
|
|
};
|