Support adding a separator in the task list when setting jump list.

Author: Chaobin Zhang

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Bryan Petty
2014-09-10 14:53:28 +00:00
parent b8815e8ac3
commit d73285aeb3
3 changed files with 87 additions and 32 deletions

View File

@@ -141,13 +141,23 @@ bool MyApp::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);
wxJumpListItem item1(wxJUMP_LIST_TASK,
wxT("Task 1"),
wxStandardPaths::Get().GetExecutablePath(),
wxEmptyString,
wxT("Test Task"),
wxStandardPaths::Get().GetExecutablePath(),
0);
wxJumpListItem item2(wxJUMP_LIST_TASK,
wxT("Task 2"),
wxStandardPaths::Get().GetExecutablePath(),
wxEmptyString,
wxT("Test Task"),
wxStandardPaths::Get().GetExecutablePath(),
0);
tasks.push_back(item1);
tasks.push_back(wxJumpListItem(wxJUMP_LIST_SEPARATOR));
tasks.push_back(item2);
jump.SetTasks(tasks);
MyFrame *frame = new MyFrame("wxTaskBarButton App");