int CBCGPTasksPane::AddTask | ( | int | nGroup, |
LPCTSTR | lpszTaskName, | ||
int | nTaskIcon = -1 , |
||
UINT | uiCommandID = 0 , |
||
DWORD_PTR | dwUserData = 0 |
||
) |
Adds a new task into the specified task group.
Use this function to add a new task into a group. The returned index should be used for the consequent task operations.
nGroup | The group index. |
lpszTaskName | The task name. |
nTaskIcon | Index in the internal image list of the task icon. |
uiCommandID | Specifies the ID of a command to be executed when the user clicks the task. The task is treated as a label if uiCommandID is 0. |
dwUserData | User-defined data to be associated with the added task. |