MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / InsertItem

Function InsertItem

Libraries/PropertyGrid/PropertyTree.h:268–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266 }
267
268 HTREEITEM InsertItem(HPROPERTY hProp, int nImage, int nSelectedImage, HTREEITEM hParent, HTREEITEM hInsertAfter = TVI_LAST)
269 {
270 ATLASSERT(::IsWindow(m_hWnd));
271 ATLASSERT(hProp);
272 m_bSeenClicks = false;
273 // NOTE: This is the only InsertItem() we support...
274 UINT mask = TVIF_TEXT | TVIF_IMAGE | TVIF_SELECTEDIMAGE | TVIF_PARAM;
275 LPARAM lParam = (LPARAM)hProp;
276 HTREEITEM hItem = TBase::InsertItem(mask, hProp->GetName(), nImage, nSelectedImage, 0, 0, lParam, hParent, hInsertAfter);
277 if( hItem ) {
278 hProp->SetOwner(m_hWnd, (LPVOID) hItem);
279 Expand(hParent);
280 }
281 return hItem;
282 }
283
284 BOOL GetItem(LPTVITEM pItem) const
285 {

Callers

nothing calls this directly

Calls 3

ExpandFunction · 0.85
GetNameMethod · 0.45
SetOwnerMethod · 0.45

Tested by

no test coverage detected