mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Added ToolTipHidden=1 / 0. When set to 1, tooltips will be suppressed. Default is 0.
Some minor changes to Rainstaller.
This commit is contained in:
parent
9a6e328bcc
commit
140ed85ed7
@ -365,6 +365,7 @@ void CMeter::ReadConfig(const WCHAR* section)
|
||||
m_ToolTipIcon = parser.ReadString(section, L"ToolTipIcon", L"", true);
|
||||
m_ToolTipWidth = (int)parser.ReadFormula(section, L"ToolTipWidth", 1000);
|
||||
m_ToolTipType = 0!=parser.ReadInt(section, L"ToolTipType", 0);
|
||||
m_ToolTipHidden = 0!=parser.ReadInt(section, L"ToolTipHidden", 0);
|
||||
|
||||
m_MeasureName = parser.ReadString(section, L"MeasureName", L"");
|
||||
|
||||
@ -678,8 +679,15 @@ void CMeter::UpdateToolTip()
|
||||
DestroyIcon(hIcon);
|
||||
}
|
||||
}
|
||||
if (m_ToolTipHidden)
|
||||
{
|
||||
SendMessage(hwndTT, TTM_ACTIVATE, false, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
SendMessage(hwndTT, TTM_ACTIVATE, !IsHidden(), NULL);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
** Draw
|
||||
|
@ -132,6 +132,7 @@ protected:
|
||||
std::wstring m_ToolTipIcon;
|
||||
unsigned int m_ToolTipWidth;
|
||||
bool m_ToolTipType;
|
||||
bool m_ToolTipHidden;
|
||||
|
||||
HWND m_ToolTipHandle;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user