1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-31 11:35:24 +01:00

Recreate the windows 7 thumbbar buttons if the window is hidden and then shown again. Fixes issue #1547

This commit is contained in:
David Sansome 2011-03-09 00:13:50 +00:00
parent 48b7dc3501
commit 8e9c913605

View File

@ -81,6 +81,12 @@ void Windows7ThumbBar::HandleWinEvent(MSG* msg) {
}
if (msg->message == button_created_message_id_) {
// Unref the old taskbar list if we had one
if (taskbar_list_) {
reinterpret_cast<ITaskbarList3*>(taskbar_list_)->Release();
taskbar_list_ = NULL;
}
if (!taskbar_list_) {
// Create the taskbar list for the first time
if (CoCreateInstance(CLSID_ITaskbarList, NULL, CLSCTX_ALL,