50 lines
1.7 KiB
C++
50 lines
1.7 KiB
C++
//{{AFX_CODEJOCK_PRIVATE
|
|
#if !defined(__XTPBUTTONTHEMEOFFICEXP_H__)
|
|
#define __XTPBUTTONTHEMEOFFICEXP_H__
|
|
//}}AFX_CODEJOCK_PRIVATE
|
|
|
|
#if _MSC_VER >= 1000
|
|
#pragma once
|
|
#endif // _MSC_VER >= 1000
|
|
|
|
//===========================================================================
|
|
// Summary:
|
|
// CXTPButtonThemeOfficeXP is a class used to perform Office XP Theme
|
|
// drawing tasks.
|
|
//===========================================================================
|
|
class _XTP_EXT_CLASS CXTPButtonThemeOfficeXP : public CXTPButtonThemeUltraFlat
|
|
{
|
|
public:
|
|
|
|
// ----------------------------------------
|
|
// Summary:
|
|
// Constructs a CXTPButtonThemeOfficeXP object
|
|
// ----------------------------------------
|
|
CXTPButtonThemeOfficeXP();
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// This member function is called to draw the background for the
|
|
// button.
|
|
// Parameters:
|
|
// pDC - A CDC pointer that represents the current device
|
|
// context.
|
|
// pButton - Points to a CXTPButton object.
|
|
// Returns:
|
|
// TRUE if the background was drawn successfully, otherwise returns
|
|
// FALSE.
|
|
//-----------------------------------------------------------------------
|
|
void DrawButtonBackground(CDC *pDC, CXTPButton *pButton);
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// This member function is called by the theme manager to refresh
|
|
// the visual styles used by each components theme.
|
|
// Parameters:
|
|
// pButton - Points to a CXTPButton object.
|
|
//-----------------------------------------------------------------------
|
|
void RefreshMetrics(CXTPButton *pButton);
|
|
};
|
|
|
|
#endif //#if !defined(__XTPBUTTONTHEMEOFFICEXP_H__)
|