Implement jump list feature: adding custom categories.

Author: Chaobin Zhang

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Bryan Petty
2014-09-10 14:54:08 +00:00
parent dc51580b1a
commit 30015f9cfe
3 changed files with 89 additions and 29 deletions

View File

@@ -161,6 +161,19 @@ bool MyApp::OnInit()
jumpList.GetTasks()->Append(item2);
jumpList.ShowRecentCategory();
jumpList.ShowFrequentCategory();
wxJumpListItem* item3 = new wxJumpListItem(
wxJUMP_LIST_DESTIONATION,
wxT("Custom Item - Help"),
wxStandardPaths::Get().GetExecutablePath(),
wxT("--help"),
wxT("Test Custom Category."),
wxStandardPaths::Get().GetExecutablePath(),
0);
wxJumpListCategory* customCategory = new wxJumpListCategory(wxT("Custom"));
customCategory->Append(item3);
jumpList.AddCategory(customCategory);
jumpList.Update();
const wxJumpListCategory* category = jumpList.GetFrequentCategory();