CMFCTasksPaneTask Class

The CMFCTasksPaneTask class is a helper class that represents tasks for the task pane control (CMFCTasksPane). The task object represents an item in the task group (CMFCTasksPaneTaskGroup). Each task can have a command that the framework executes when a user clicks on the task and an icon that appears to the left of the task name.

class CMFCTasksPaneTask : public CObject

Members

Public Constructors

Name

Description

CMFCTasksPaneTask::CMFCTasksPaneTask

Creates and initializes a CMFCTasksPaneTask object.

CMFCTasksPaneTask::~CMFCTasksPaneTask

Destructor.

Public Methods

Name

Description

CMFCTasksPaneTask::SetACCData

Determines the accessibility data for the current task.

Data Members

Name

Description

CMFCTasksPaneTask::m_bAutoDestroyWindow

Determines whether the task window is automatically destroyed.

CMFCTasksPaneTask::m_bIsBold

Determines whether the framework draws a task label in bold text.

CMFCTasksPaneTask::m_dwUserData

Contains user-defined data that the framework associates with the task. Set to zero if the task has no associated data.

CMFCTasksPaneTask::m_hwndTask

A handle to the task window.

CMFCTasksPaneTask::m_nIcon

The index in the image list of the image that the framework displays next to the task.

CMFCTasksPaneTask::m_nWindowHeight

The height of the task window. If the task has no task window, this value is zero.

CMFCTasksPaneTask::m_pGroup

A pointer to the CMFCTasksPaneTaskGroup that this task belongs to.

CMFCTasksPaneTask::m_rect

Specifies the bounding rectangle of the task.

CMFCTasksPaneTask::m_strName

The name of the task.

CMFCTasksPaneTask::m_uiCommandID

Specifies the command ID of the command that the framework executes when the user clicks the task. If this value is not a valid command ID, the task is treated as a simple label.

Remarks

The following illustration shows a task group that contains three tasks:

Task group expanded

Note

If a task does not have a valid command ID, it is treated as a simple label.

Inheritance Hierarchy

CObject

   CMFCTasksPaneTask

Requirements

Header: afxTasksPane.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CObject Class

Other Resources

Classes (MFC Feature Pack)