81 lines
3.5 KiB
C++
81 lines
3.5 KiB
C++
class CXTPStatusBarPane;
|
|
class CXTPPaintManager;
|
|
class CXTPStatusBarColorSet;
|
|
|
|
class _XTP_EXT_CLASS CXTPStatusBarPaintManager
|
|
{
|
|
public:
|
|
CXTPStatusBarPaintManager(CXTPPaintManager *pPaintManager);
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// This method is called to fill a status bar.
|
|
// Parameters:
|
|
// pDC - Pointer to a valid device context
|
|
// pBar - Points to a CXTPStatusBar object
|
|
//-----------------------------------------------------------------------
|
|
virtual void FillStatusBar(CDC *pDC, CXTPStatusBar* pBar);
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// This method is called to draw a single pane text of the status bar.
|
|
// Parameters:
|
|
// pDC - Pointer to a valid device context.
|
|
// pPane - The status bar pane need to draw.
|
|
// rcItem - Item rectangle.
|
|
//-----------------------------------------------------------------------
|
|
virtual void DrawStatusBarPaneEntry(CDC *pDC, CRect rcItem, CXTPStatusBarPane *pPane);
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Input: pDC - Pointer to a valid device context.
|
|
// rcItem - Item rectangle.
|
|
// pPane - The status bar pane need to draw.
|
|
// Summary: This method is called to draw a status bar button.
|
|
//-----------------------------------------------------------------------
|
|
virtual void DrawStatusBarButtonFace(CDC *pDC, CRect rcItem, CXTPStatusBarPane *pPane);
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Input: pDC - Pointer to a valid device context.
|
|
// rcItem - Item rectangle.
|
|
// pPane - The status bar pane need to draw.
|
|
// Summary: This method is called to draw a status bar switch pane.
|
|
// Returns: Returns width of switch pane
|
|
//-----------------------------------------------------------------------
|
|
virtual int DrawStatusBarSwitchPane(CDC *pDC, CRect rcItem, CXTPStatusBarSwitchPane *pPane);
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// This method is called to draw frame of single cell of status bar.
|
|
// Parameters:
|
|
// pDC - Points to a valid device context.
|
|
// rc - CRect object specifying size of area.
|
|
// pPane - The status bar pane need to draw.
|
|
// bGripperPane - TRUE if pane is last cell of status bar
|
|
//-----------------------------------------------------------------------
|
|
virtual void DrawStatusBarPaneBorder(CDC *pDC, CRect rc, CXTPStatusBarPane *pPane, BOOL bGripperPane);
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Input: pDC - Pointer to a valid device context.
|
|
// rc - CRect object specifying size of area.
|
|
// pPane - The status bar pane need to draw.
|
|
// Summary: This method is called to draw a status bar switch pane separator.
|
|
//-----------------------------------------------------------------------
|
|
virtual void DrawStatusBarPaneSeparator(CDC *pDC, CRect rc, CXTPStatusBarPane *pPane);
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// This method is called to draw the status bar's gripper.
|
|
// Parameters:
|
|
// pDC - Pointer to a valid device context
|
|
// rcClient - Client rectangle of the status bar.
|
|
//-----------------------------------------------------------------------
|
|
virtual void DrawStatusBarGripper(CDC *pDC, CRect rcClient);
|
|
|
|
virtual COLORREF GetTextColor(CXTPStatusBarPane *pPane);
|
|
|
|
public:
|
|
|
|
CXTPStatusBarColorSet *m_pColorSet;
|
|
CXTPPaintManager *m_pPaintManager;
|
|
};
|