Partager via


CMFCTasksPane::GetTaskLocation

Returns the group and the index for a specified task.

BOOL GetTaskLocation(
    UINT uiCommandID,
    int& nGroup,
    int& nTask
) const;
BOOL GetTaskLocation(
    HWND hwndTask,
    int& nGroup,
    int& nTask
) const;
BOOL GetTaskLocation(
    CMFCTasksPaneTask* pTask,
    int& nGroup,
    int& nTask
) const;

Parameters

  • [in] uiCommandID
    Specifies the command ID of the task to find.

  • [out] nGroup
    Contains the group index of the task.

  • [out] nTask
    Contains the index of the task in the task group.

  • [in] hwndTask
    Specifies the window associated with the task.

  • [in] pTask
    Specifies the task to find.

Return Value

TRUE if the task location was found; FALSE if the specified task does not exist.

Remarks

This method retrieves the group index and task index for the specified task. If the method returns FALSE, nGroup and nTask are set to -1.

Requirements

Header: afxTasksPane.h

See Also

Reference

CMFCTasksPane Class

Hierarchy Chart