diff --git a/Library/Meter.cpp b/Library/Meter.cpp index 9447a80e..11747d21 100644 --- a/Library/Meter.cpp +++ b/Library/Meter.cpp @@ -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,7 +679,14 @@ void CMeter::UpdateToolTip() DestroyIcon(hIcon); } } - SendMessage(hwndTT, TTM_ACTIVATE, !IsHidden(), NULL); + if (m_ToolTipHidden) + { + SendMessage(hwndTT, TTM_ACTIVATE, false, NULL); + } + else + { + SendMessage(hwndTT, TTM_ACTIVATE, !IsHidden(), NULL); + } } /* diff --git a/Library/Meter.h b/Library/Meter.h index 77ff3669..dbdd785a 100644 --- a/Library/Meter.h +++ b/Library/Meter.h @@ -132,6 +132,7 @@ protected: std::wstring m_ToolTipIcon; unsigned int m_ToolTipWidth; bool m_ToolTipType; + bool m_ToolTipHidden; HWND m_ToolTipHandle;