Meter: ToolTipIcon option allows to use relative path

This commit is contained in:
spx 2013-11-24 00:29:45 +09:00
parent d576581340
commit 9885c57b70

View File

@ -640,7 +640,9 @@ void Meter::UpdateToolTip()
}
else
{
hIcon = (HICON)LoadImage(nullptr, tipIcon, IMAGE_ICON, 0, 0, LR_LOADFROMFILE);
std::wstring iconPath = m_ToolTipIcon;
m_MeterWindow->MakePathAbsolute(iconPath);
hIcon = (HICON)LoadImage(nullptr, iconPath.c_str(), IMAGE_ICON, 0, 0, LR_LOADFROMFILE);
destroy = true;
}
}