mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Meter: ToolTipIcon option allows to use relative path
This commit is contained in:
parent
d576581340
commit
9885c57b70
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user