Partager via


CMFCTasksPaneTask::CMFCTasksPaneTask

Creates and initializes a CMFCTasksPaneTask object.

CMFCTasksPaneTask(
    CMFCTasksPaneTaskGroup* pGroup,
    LPCTSTR lpszName,
    int nIcon,
    UINT uiCommandID,
    DWORD dwUserData = 0,
    HWND hwndTask = NULL,
    BOOL bAutoDestroyWindow = FALSE,
    int nWindowHeight = 0
);

Parameters

  • pGroup
    Specifies the CMFCTasksPaneTaskGroup to which the task belongs.

  • lpszName
    Specifies the name of the task.

  • nIcon
    Specifies the index of the task's image in the image list.

  • uiCommandID
    Specifies the command ID of the command that is executed when the task is clicked.

  • dwUserData
    User-defined data.

  • hwndTask
    Specifies the handle to the task window.

  • bAutoDestroyWindow
    If TRUE, the task window will be destroyed automatically.

  • nWindowHeight
    Specifies the height of the task window.

Requirements

Header: afxTasksPane.h

See Also

Reference

Hierarchy Chart

CMFCTasksPaneTask Class