134 lines
5.7 KiB
C++
134 lines
5.7 KiB
C++
// XTPScrollBar.h interface for the CXTPScrollBar class.
|
|
//
|
|
// This file is a part of the XTREME CONTROLS MFC class library.
|
|
// (c)1998-2013 Codejock Software, All Rights Reserved.
|
|
//
|
|
// THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
|
|
// RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN
|
|
// CONSENT OF CODEJOCK SOFTWARE.
|
|
//
|
|
// THIS SOURCE CODE CAN ONLY BE USED UNDER THE TERMS AND CONDITIONS OUTLINED
|
|
// IN THE XTREME TOOLKIT PRO LICENSE AGREEMENT. CODEJOCK SOFTWARE GRANTS TO
|
|
// YOU (ONE SOFTWARE DEVELOPER) THE LIMITED RIGHT TO USE THIS SOFTWARE ON A
|
|
// SINGLE COMPUTER.
|
|
//
|
|
// CONTACT INFORMATION:
|
|
// support@codejock.com
|
|
// http://www.codejock.com
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
//{{AFX_CODEJOCK_PRIVATE
|
|
#if !defined(__XTPSCROLLBAR_H__)
|
|
#define __XTPSCROLLBAR_H__
|
|
//}}AFX_CODEJOCK_PRIVATE
|
|
|
|
#if _MSC_VER >= 1000
|
|
#pragma once
|
|
#endif // _MSC_VER >= 1000
|
|
|
|
//===========================================================================
|
|
// Summary:
|
|
// Scrollbar control.
|
|
// Remarks:
|
|
// Scroll bars provide easy navigation through a long list of items or a
|
|
// large amount of information. They can also provide an analog representation
|
|
// of current position. You can use a scroll bar as an input device or
|
|
// indicator of speed or quantity.for example, to control the volume of a
|
|
// computer game or to view the time elapsed in a timed process.
|
|
//===========================================================================
|
|
class _XTP_EXT_CLASS CXTPScrollBar : public CXTPScrollBarCtrl
|
|
{
|
|
DECLARE_DYNAMIC(CXTPScrollBar)
|
|
|
|
public:
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// Constructs a CXTPScrollBar object
|
|
//-----------------------------------------------------------------------
|
|
CXTPScrollBar();
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// Destroys a CXTPScrollBar object, handles cleanup and deallocation
|
|
//-----------------------------------------------------------------------
|
|
virtual ~CXTPScrollBar();
|
|
|
|
public:
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// Call this member to switch the visual theme of the control.
|
|
// Parameters:
|
|
// nTheme - New visual theme. Can be any of the values listed in the Remarks section.
|
|
// Remarks:
|
|
// nStyle can be one of the following:
|
|
// * <b>xtpControlThemeDefault</b> Standard appearance style.
|
|
// * <b>xtpControlThemeFlat</b> Flat appearance style.
|
|
// * <b>xtpControlThemeUltraFlat</b> Ultra flat appearance style.
|
|
// * <b>xtpControlThemeOffice2000</b> Office 2000 appearance style.
|
|
// * <b>xtpControlThemeOfficeXP</b> Office XP appearance style.
|
|
// * <b>xtpControlThemeOffice2003</b> Office 2003 appearance style.
|
|
// * <b>xtpControlThemeResource</b> Office 2007 appearance style.
|
|
// * <b>xtpControlThemeVisualStudio2012Light</b> VS 2012 Light style theme.
|
|
// * <b>xtpControlThemeVisualStudio2012Dark</b> VS 2012 Dark style theme.
|
|
//-----------------------------------------------------------------------
|
|
void SetTheme(XTPControlTheme nTheme);
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// Determines if the control is drawn using visual styles\SkinFramework, if supported.
|
|
// Remarks:
|
|
// This method enables Windows XP visual styles for the control. This
|
|
// Control will draw with visual styles if the control and the operating
|
|
// system supports it.
|
|
// Visual styles and SkinFramwork skins are specifications for the
|
|
// appearance of controls. GetUseVisualStyle determines whether to
|
|
// use the currently set Windows XP visual style. If using SkinFramwork,
|
|
// it determines whether to use the currently set style of the SkinFramework.
|
|
// Returns:
|
|
// TRUE if the currently set Windows XP visual style will be used to
|
|
// theme the control. If using SkinFramwork, the currently set style
|
|
// of the SkinFramework will be used to skin the control.
|
|
//
|
|
// FALSE if the currently set appearance\style in the OS will be used.
|
|
//-----------------------------------------------------------------------
|
|
BOOL GetUseVisualStyle() const;
|
|
|
|
//-----------------------------------------------------------------------
|
|
// Summary:
|
|
// Enables Windows XP visual styles for the control.
|
|
// Remarks:
|
|
// This method enables Windows XP visual styles for the control. This
|
|
// Control will draw with visual styles if the control and the operating
|
|
// system supports it.
|
|
// Visual styles and SkinFramwork skins are specifications for the
|
|
// appearance of controls. GetUseVisualStyle determines whether to
|
|
// use the currently set Windows XP visual style. If using SkinFramwork,
|
|
// it determines whether to use the currently set style of the SkinFramework.
|
|
// Parameters:
|
|
// bUseVisualStyle - TRUE if the currently set Windows XP visual style will be used to
|
|
// theme the control. If using SkinFramwork, the currently set style
|
|
// of the SkinFramework will be used to skin the control.
|
|
//
|
|
// FALSE if the currently set appearance\style in the OS will be used.
|
|
//-----------------------------------------------------------------------
|
|
void SetUseVisualStyle(BOOL bUseVisualStyle = TRUE);
|
|
|
|
public:
|
|
//{{AFX_CODEJOCK_PRIVATE
|
|
void SetCommandBars(void*);
|
|
//}}AFX_CODEJOCK_PRIVATE
|
|
|
|
protected:
|
|
XTPControlTheme m_nTheme; // Scrollbar theme.
|
|
BOOL m_bUseVisualStyle; // True to use Visual Styles.
|
|
};
|
|
|
|
AFX_INLINE BOOL CXTPScrollBar::GetUseVisualStyle() const
|
|
{
|
|
return m_bUseVisualStyle;
|
|
}
|
|
|
|
|
|
#endif // !defined(__XTPSCROLLBAR_H__)
|