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 |
---|---|
Creates and initializes a CMFCTasksPaneTask object. |
|
CMFCTasksPaneTask::~CMFCTasksPaneTask |
Destructor. |
Public Methods
Name |
Description |
---|---|
Determines the accessibility data for the current task. |
Data Members
Name |
Description |
---|---|
Determines whether the task window is automatically destroyed. |
|
Determines whether the framework draws a task label in bold text. |
|
Contains user-defined data that the framework associates with the task. Set to zero if the task has no associated data. |
|
A handle to the task window. |
|
The index in the image list of the image that the framework displays next to the task. |
|
The height of the task window. If the task has no task window, this value is zero. |
|
A pointer to the CMFCTasksPaneTaskGroup that this task belongs to. |
|
Specifies the bounding rectangle of the task. |
|
The name of the task. |
|
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:
Nota
If a task does not have a valid command ID, it is treated as a simple label.
Inheritance Hierarchy
Requirements
Header: afxTasksPane.h