//=========================================================================== // Summary: // CXTPDockingPaneGripperedTheme is CXTPDockingPaneDefaultTheme derived class, represents // gripper theme for docking panes. // Remarks: // Call CXTPDockingPaneManager::SetTheme(xtpPaneThemeGrippered); to set this theme. //=========================================================================== class _XTP_EXT_CLASS CXTPDockingPaneGripperedTheme : public CXTPDockingPaneDefaultTheme { public: //------------------------------------------------------------------------- // Summary: // Constructs a CXTPDockingPaneGripperedTheme object. //------------------------------------------------------------------------- CXTPDockingPaneGripperedTheme(); public: // ----------------------------------------------------- // 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 // // ----------------------------------------------------- void DrawFloatingFrame(CDC* pDC, CXTPDockingPaneMiniWnd* pPane, CRect rc); //----------------------------------------------------------------------- // 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: // This method is called to refresh the visual metrics of the pane. //----------------------------------------------------------------------- virtual void RefreshMetrics(); protected: //----------------------------------------------------------------------- // Summary: // Draw common part of tabbed and floating caption. // Parameters: // pDC - Reference to the device context in which to draw. // pPane - Container which caption need to draw. // rcCaption - Caption bounding rectangle // strTitle - Caption text. // bActive - TRUE if caption is active. // bVertical - TRUE to draw caption vertically //----------------------------------------------------------------------- virtual void DrawCaptionPart(CDC* pDC, CXTPDockingPaneBase* pPane, CRect rcCaption, const CString& strTitle, BOOL bActive, BOOL bVertical); };