MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / InsertItemToTree

Method InsertItemToTree

Editor/BaseLibraryDialog.cpp:278–286  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

276
277//////////////////////////////////////////////////////////////////////////
278HTREEITEM CBaseLibraryDialog::InsertItemToTree( CBaseLibraryItem *pItem,HTREEITEM hParent )
279{
280 assert( pItem );
281 HTREEITEM hItem = m_treeCtrl.InsertItem( pItem->GetShortName(),2,3,hParent );
282 //m_treeCtrl.SetItemState( hItem, TVIS_BOLD,TVIS_BOLD );
283 m_treeCtrl.SetItemData( hItem,(DWORD_PTR)pItem );
284 m_itemsToTree[pItem] = hItem;
285 return hItem;
286}
287
288//////////////////////////////////////////////////////////////////////////
289void CBaseLibraryDialog::SelectLibrary( const CString &library )

Callers

nothing calls this directly

Calls 3

GetShortNameMethod · 0.80
SetItemDataMethod · 0.80
InsertItemMethod · 0.45

Tested by

no test coverage detected