mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Manage Skins: Fixed that Position is not saved permanently (reset if skin is refreshed)
This commit is contained in:
@ -3612,28 +3612,23 @@ LRESULT CMeterWindow::OnCommand(UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
}
|
||||
else if (wParam == ID_CONTEXT_SKINMENU_VERYTOPMOST)
|
||||
{
|
||||
ChangeZPos(ZPOSITION_ONTOPMOST);
|
||||
WriteConfig(SETTING_ALWAYSONTOP);
|
||||
SetWindowZPosition(ZPOSITION_ONTOPMOST);
|
||||
}
|
||||
else if (wParam == ID_CONTEXT_SKINMENU_TOPMOST)
|
||||
{
|
||||
ChangeZPos(ZPOSITION_ONTOP);
|
||||
WriteConfig(SETTING_ALWAYSONTOP);
|
||||
SetWindowZPosition(ZPOSITION_ONTOP);
|
||||
}
|
||||
else if (wParam == ID_CONTEXT_SKINMENU_BOTTOM)
|
||||
{
|
||||
ChangeZPos(ZPOSITION_ONBOTTOM);
|
||||
WriteConfig(SETTING_ALWAYSONTOP);
|
||||
SetWindowZPosition(ZPOSITION_ONBOTTOM);
|
||||
}
|
||||
else if (wParam == ID_CONTEXT_SKINMENU_NORMAL)
|
||||
{
|
||||
ChangeZPos(ZPOSITION_NORMAL);
|
||||
WriteConfig(SETTING_ALWAYSONTOP);
|
||||
SetWindowZPosition(ZPOSITION_NORMAL);
|
||||
}
|
||||
else if (wParam == ID_CONTEXT_SKINMENU_ONDESKTOP)
|
||||
{
|
||||
ChangeZPos(ZPOSITION_ONDESKTOP);
|
||||
WriteConfig(SETTING_ALWAYSONTOP);
|
||||
SetWindowZPosition(ZPOSITION_ONDESKTOP);
|
||||
}
|
||||
else if (wParam == ID_CONTEXT_SKINMENU_KEEPONSCREEN)
|
||||
{
|
||||
@ -3867,6 +3862,18 @@ void CMeterWindow::SetWindowHide(HIDEMODE hide)
|
||||
WriteConfig(SETTING_HIDEONMOUSEOVER);
|
||||
}
|
||||
|
||||
/*
|
||||
** SetWindowZPosition
|
||||
**
|
||||
** Helper function for setting Position
|
||||
**
|
||||
*/
|
||||
void CMeterWindow::SetWindowZPosition(ZPOSITION zpos)
|
||||
{
|
||||
ChangeZPos(zpos);
|
||||
WriteConfig(SETTING_ALWAYSONTOP);
|
||||
}
|
||||
|
||||
/*
|
||||
** OnSysCommand
|
||||
**
|
||||
|
Reference in New Issue
Block a user