Revise Show/Hide, for consistency with the other classes.

Author: Chaobin Zhang

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Bryan Petty
2014-09-10 14:50:58 +00:00
parent bb640a38d3
commit 84e1760c4e
3 changed files with 8 additions and 5 deletions

View File

@@ -76,14 +76,17 @@ void wxTaskBarButtonImpl::SetProgressValue(int value)
m_taskbarList->SetProgressValue(m_hwnd, value, 100);
}
void wxTaskBarButtonImpl::Show()
void wxTaskBarButtonImpl::Show(bool show)
{
m_taskbarList->AddTab(m_hwnd);
if ( show )
m_taskbarList->AddTab(m_hwnd);
else
m_taskbarList->DeleteTab(m_hwnd);
}
void wxTaskBarButtonImpl::Hide()
{
m_taskbarList->DeleteTab(m_hwnd);
Show(false);
}
void wxTaskBarButtonImpl::SetThumbnailTooltip(const wxString& tooltip)