BOOL CBCGPBreadcrumb::SetItemDynamic | ( | HBREADCRUMBITEM | hItem, |
BOOL | bDynamic = TRUE |
||
) |
Marks the specified item as dynamic.
When the breadcrumb control needs to obtain (display) its children from a dynamic item, it sends the BCCN_DYNAMIC_GETSUBITEMS message to the parent. The parent window should return the list of children as a response to this message.
The child items of dynamic item are freed automatically when no longer needed. This may significantly reduce the memory usage and provide best performance if there is a lot of items in hierarchy.
hItem | A handle to item. |
bDynamic | Specifies whether the item is dynamic (TRUE), or not (FALSE). |