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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user