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:
Birunthan Mohanathas 2010-10-10 16:58:55 +00:00
parent 9a6e328bcc
commit 140ed85ed7
2 changed files with 10 additions and 1 deletions

View File

@ -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);
}
}
if (m_ToolTipHidden)
{
SendMessage(hwndTT, TTM_ACTIVATE, false, NULL);
}
else
{
SendMessage(hwndTT, TTM_ACTIVATE, !IsHidden(), NULL);
}
}
/*

View File

@ -132,6 +132,7 @@ protected:
std::wstring m_ToolTipIcon;
unsigned int m_ToolTipWidth;
bool m_ToolTipType;
bool m_ToolTipHidden;
HWND m_ToolTipHandle;