32 строки
868 B
C++
32 строки
868 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 CMyComboBox : public CComboBox
|
|
{
|
|
DECLARE_DYNAMIC(CMyComboBox)
|
|
public:
|
|
CMyComboBox();
|
|
virtual ~CMyComboBox();
|
|
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();
|
|
};
|
|
}
|