API: SetThumbnailContents, for setting thumbnail contents with child window.
Author: Chaobin Zhang git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
4318edc865
commit
8f3fe516ba
@ -29,6 +29,7 @@ public:
|
||||
virtual void SetOverlayIcon(const wxIcon& icon,
|
||||
const wxString& description = wxString()) wxOVERRIDE;
|
||||
virtual void SetThumbnailClip(const wxRect& rect) wxOVERRIDE;
|
||||
virtual void SetThumbnailContents(const wxWindow* child) wxOVERRIDE;
|
||||
virtual bool AddThumbBarButton(wxThumbBarButton *button) wxOVERRIDE;
|
||||
virtual void ShowThumbnailToolbar() wxOVERRIDE;
|
||||
|
||||
|
@ -62,6 +62,7 @@ public:
|
||||
virtual void SetOverlayIcon(const wxIcon& icon,
|
||||
const wxString& description = wxString()) = 0;
|
||||
virtual void SetThumbnailClip(const wxRect& rect) = 0;
|
||||
virtual void SetThumbnailContents(const wxWindow* child) = 0;
|
||||
|
||||
/**
|
||||
Adds a thumbnail toolbar button to the thumbnail image of a window in
|
||||
|
@ -111,6 +111,11 @@ void wxTaskBarButtonImpl::SetThumbnailClip(const wxRect& rect)
|
||||
m_taskbarList->SetThumbnailClip(m_hwnd, rect.IsEmpty() ? NULL : &rc);
|
||||
}
|
||||
|
||||
void wxTaskBarButtonImpl::SetThumbnailContents(const wxWindow* child)
|
||||
{
|
||||
SetThumbnailClip(child->GetRect());
|
||||
}
|
||||
|
||||
bool wxTaskBarButtonImpl::AddThumbBarButton(wxThumbBarButton *button)
|
||||
{
|
||||
wxCHECK( button != NULL, wxT("Can't add invalid wxThumbBarButton.") );
|
||||
|
Loading…
Reference in New Issue
Block a user