| CBCGPPropSheetCategory* CBCGPPropertySheet::AddTreeCategory | ( | LPCTSTR | lpszLabel, |
| int | nIconNum = -1, |
||
| int | nSelectedIconNum = -1, |
||
| const CBCGPPropSheetCategory * | pParentCategory = NULL |
||
| ) |
Adds a new category to the tree navigation control.
Use this function to add a new category to the tree navigation control. If you set pParentCategoty to NULL, the new category will be added as a top level item.
You must call CBCGPPropertySheet::SetLook with CBCGPPropertySheet::PropSheetLook_Tree style before the property sheet has been created.
| lpszLabel | Specifies the category name. |
| nIconNum | Icon index. |
| nSelectedIconNum | Selected icon index. |
| pParentCategory | Points to a parent category. Can be NULL. |