You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
49 lines
1.1 KiB
#pragma once
|
|
|
|
#include "interface/stooltip-i.h"
|
|
#include "core/SNativeWnd.h"
|
|
|
|
namespace SOUI
|
|
{
|
|
class STipCtrl : public IToolTip
|
|
, public SNativeWnd
|
|
{
|
|
public:
|
|
STipCtrl(void);
|
|
virtual ~STipCtrl(void);
|
|
|
|
BOOL Create();
|
|
|
|
public://IToolTip
|
|
/*virtual*/ void RelayEvent(const MSG *pMsg);
|
|
|
|
/*virtual*/ void UpdateTip(const TIPID &id, CRect rc,LPCTSTR pszTip,int nScale);
|
|
|
|
/*virtual*/ void ClearTip();
|
|
|
|
/*virtual*/ BOOL PreTranslateMessage(MSG* pMsg);
|
|
protected:
|
|
virtual void OnFinalMessage(HWND hWnd);
|
|
|
|
void OnTimer(UINT_PTR idEvent);
|
|
void OnPaint(HDC dc);
|
|
void ShowTip(BOOL bShow);
|
|
|
|
BEGIN_MSG_MAP_EX(STipCtrl)
|
|
MSG_WM_PAINT(OnPaint)
|
|
MSG_WM_TIMER(OnTimer)
|
|
REFLECT_NOTIFICATIONS_EX()
|
|
END_MSG_MAP()
|
|
|
|
protected:
|
|
int m_nDelay;
|
|
int m_nShowSpan;
|
|
SStringT m_strTip;
|
|
int m_nScale;
|
|
CRect m_rcTarget;
|
|
HFONT m_font;
|
|
|
|
TIPID m_id;
|
|
};
|
|
}
|
|
|
|
|