Share

CAcTcUiCatalogView::SetCatalogItem

C++

BOOL SetCatalogItem(
    AcTcCatalogItem* pCatalogItem
);

Description

Sets the pointer to the catalog item whose children are to be displayed in the catalog view. The catalog view is not the owner of the catalog item. Hence, it will not delete the catalog item when the catalog view is destroyed. If the catalog item pointer set in the view or its children are deleted, the view should be updated immediately by calling CAcTcCatalogView::Update(). This function should be called whenever the content of the catalog item changes.

Returns true if the function succeeds; otherwise, returns false.

Parameters

Parameters Description
pCatalogItem Input pointer to the catalog item whose children are to be displayed in the catalog view (can be null)

Links

CAcTcUiCatalogView Class

Was this information helpful?