31 строка
839 B
C++
31 строка
839 B
C++
// Copyright (c) Wiesław Šoltés. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
#pragma once
|
|
|
|
namespace controls
|
|
{
|
|
class CMySliderCtrl : public CSliderCtrl
|
|
{
|
|
public:
|
|
CMySliderCtrl();
|
|
virtual ~CMySliderCtrl();
|
|
protected:
|
|
virtual void PreSubclassWindow();
|
|
protected:
|
|
DECLARE_MESSAGE_MAP()
|
|
protected:
|
|
afx_msg BOOL OnToolTipText(UINT id, NMHDR *pNMHDR, LRESULT *pResult);
|
|
public:
|
|
virtual INT_PTR OnToolHitTest(CPoint point, TOOLINFO* pTI) const;
|
|
private:
|
|
CString szToolTipText;
|
|
bool bHaveToolTipText;
|
|
public:
|
|
void SetTooltipText(CString szText);
|
|
CString GetTooltipText();
|
|
void DelTooltipText();
|
|
bool HaveTooltipText();
|
|
};
|
|
}
|