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

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

@ -81,6 +81,12 @@ void Windows7ThumbBar::HandleWinEvent(MSG* msg) {
} }
if (msg->message == button_created_message_id_) { 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_) { if (!taskbar_list_) {
// Create the taskbar list for the first time // Create the taskbar list for the first time
if (CoCreateInstance(CLSID_ITaskbarList, NULL, CLSCTX_ALL, if (CoCreateInstance(CLSID_ITaskbarList, NULL, CLSCTX_ALL,