Share via


CJumpList::AddTask

Adds items to the canonical Tasks category.

BOOL AddTask(
   LPCTSTR strTargetExecutablePath,
   LPCTSTR strCommandLineArgs,
   LPCTSTR strTitle,
   LPCTSTR strIconLocation,
   int iIconIndex
);
BOOL AddTask(
   IShellLink* pShellLink
);

Parameters

  • strTargetExecutablePath
    Specifies the target task path.

  • strCommandLineArgs
    Specifies command line arguments of the executable specified by strTargetExecutablePath.

  • strTitle
    Task name that will be displayed in the Destination List.

  • strIconLocation
    Location of icon that will be displayed in the Destination List along with the title.

  • iIconIndex
    Icon index.

  • pShellLink
    Shell Link that represents a task to be added.

Remarks

The instance of CJumpList accumulates specified tasks and adds them to the Destination List during CommitList. Task items will appear in a category at the bottom of the application's destination menu. This category takes precedence over all other categories when it is filled in the UI.

Requirements

Header: afxadv.h

See Also

Reference

CJumpList Class