Commit 6d598150 authored by Owen Rudge's avatar Owen Rudge Committed by Alexandre Julliard

shell32: Ensure status bar in control panel is reset when menu closed. Also…

shell32: Ensure status bar in control panel is reset when menu closed. Also reset to blank when item deselected.
parent ac78bfe1
......@@ -511,6 +511,8 @@ static LRESULT WINAPI Control_WndProc(HWND hWnd, UINT wMsg,
if (item)
SetWindowTextW(panel->hWndStatusBar,
item->applet->info[item->id].szInfo);
else
SetWindowTextW(panel->hWndStatusBar, NULL);
return 0;
}
......@@ -533,6 +535,18 @@ static LRESULT WINAPI Control_WndProc(HWND hWnd, UINT wMsg,
if (item)
SetWindowTextW(panel->hWndStatusBar, item->applet->info[item->id].szInfo);
}
else if ((HIWORD(lParam1) == 0xFFFF) && (lParam2 == 0))
{
/* reset status bar description to that of the selected icon */
CPlItem *item = Control_GetCPlItem_From_ListView(panel);
if (item)
SetWindowTextW(panel->hWndStatusBar, item->applet->info[item->id].szInfo);
else
SetWindowTextW(panel->hWndStatusBar, NULL);
return 0;
}
else
SetWindowTextW(panel->hWndStatusBar, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment