Save the thumbar buttons when setting them
Then restore the buttons when restoring the taskbar icon
This commit is contained in:
parent
0b624315b2
commit
2fa7aa3c71
4 changed files with 17 additions and 3 deletions
|
@ -115,9 +115,17 @@ bool TaskbarHost::SetThumbarButtons(
|
|||
r = taskbar_->ThumbBarAddButtons(window, kMaxButtonsCount, thumb_buttons);
|
||||
|
||||
thumbar_buttons_added_ = true;
|
||||
last_buttons_ = buttons;
|
||||
return SUCCEEDED(r);
|
||||
}
|
||||
|
||||
void TaskbarHost::RestoreThumbarButtons(HWND window) {
|
||||
if (thumbar_buttons_added_) {
|
||||
thumbar_buttons_added_ = false;
|
||||
SetThumbarButtons(window, last_buttons_);
|
||||
}
|
||||
}
|
||||
|
||||
bool TaskbarHost::SetProgressBar(
|
||||
HWND window, double value, const std::string& mode) {
|
||||
if (!InitializeTaskbar())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue