BCGControlBar Pro for MFC
BOOL CBCGPTasksPane::GetTaskLocation ( UINT  uiCommandID,
int &  nGroup,
int &  nTask 
) const

Given a task command returns the task's group and index.

Returns
TRUE, if the function succeeds; FALSE - if a task with specified command does not exist.

Call this function to determine the task location. Under task's location is meant the group index and task's index in this group. If the function fails nGroup and nTask will be set to -1.

Parameters
uiCommandIDSpecifies the command ID identifying the tasks whose location should be found.
nGroup[out] When the function returns it will contain the group index.
nTask[out] When the function returns, it will contain the task's index.