int CBCGPTasksPane::AddWindow | ( | int | nGroup, |
HWND | hwndTask, | ||
int | nWndHeight, | ||
BOOL | bAutoDestroyWindow = FALSE , |
||
DWORD_PTR | dwUserData = 0 , |
||
CBCGPTask::WindowAlign | align = CBCGPTask::BCGP_TASKPANE_WND_STRETCH , |
||
int | nWndWidth = 0 |
||
) |
Adds a child window to the task pane.
Use this function to add a new window as a task. For example, it can be an edit control for search and so on. The returned index should be used for the consequent task operations.
nGroup | The group index. |
hwndTask | A handle to the window to add. |
nWndHeight | Specifies the window height. |
bAutoDestroyWindow | Specifies whether the window should be destroyed automatically when the task is removed. |
dwUserData | The user-defined data associated with the task. |
align | Specifies the window alignment. |
nWndWidth | Specifies the window width. |