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_ToolTipIcon = parser.ReadString(section, L"ToolTipIcon", L"", true);
|
||||||
m_ToolTipWidth = (int)parser.ReadFormula(section, L"ToolTipWidth", 1000);
|
m_ToolTipWidth = (int)parser.ReadFormula(section, L"ToolTipWidth", 1000);
|
||||||
m_ToolTipType = 0!=parser.ReadInt(section, L"ToolTipType", 0);
|
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"");
|
m_MeasureName = parser.ReadString(section, L"MeasureName", L"");
|
||||||
|
|
||||||
@ -678,7 +679,14 @@ void CMeter::UpdateToolTip()
|
|||||||
DestroyIcon(hIcon);
|
DestroyIcon(hIcon);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SendMessage(hwndTT, TTM_ACTIVATE, !IsHidden(), NULL);
|
if (m_ToolTipHidden)
|
||||||
|
{
|
||||||
|
SendMessage(hwndTT, TTM_ACTIVATE, false, NULL);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SendMessage(hwndTT, TTM_ACTIVATE, !IsHidden(), NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -132,6 +132,7 @@ protected:
|
|||||||
std::wstring m_ToolTipIcon;
|
std::wstring m_ToolTipIcon;
|
||||||
unsigned int m_ToolTipWidth;
|
unsigned int m_ToolTipWidth;
|
||||||
bool m_ToolTipType;
|
bool m_ToolTipType;
|
||||||
|
bool m_ToolTipHidden;
|
||||||
|
|
||||||
HWND m_ToolTipHandle;
|
HWND m_ToolTipHandle;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user