Redeclare the interfaces and support setting tasks of jump list roughly.

- Interfaces including: ITaskbarList3, IShellLink, ICustomDestinationList.
- New API for setting tasks of jump list: wxJumpList::SetTasks.

Author: Chaobin Zhang

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Bryan Petty
2014-09-10 14:53:05 +00:00
parent dd06fa3aa8
commit 615773842c
4 changed files with 451 additions and 5 deletions

View File

@@ -18,6 +18,7 @@
#endif
#include "wx/taskbarbutton.h"
#include "wx/stdpaths.h"
enum
{
@@ -133,6 +134,16 @@ bool MyApp::OnInit()
{
if ( !wxApp::OnInit() )
return false;
wxJumpList jump;
wxJumpListItems tasks;
wxJumpListItem item(wxT("Task 1"),
wxStandardPaths::Get().GetExecutablePath(),
wxEmptyString,
wxT("Test Task"),
wxStandardPaths::Get().GetExecutablePath(),
0);
tasks.push_back(item);
jump.SetTasks(tasks);
MyFrame *frame = new MyFrame("wxTaskBarButton App");
frame->Show(true);