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

Function GetItem

Libraries/PropertyGrid/PropertyTree.h:284–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282 }
283
284 BOOL GetItem(LPTVITEM pItem) const
285 {
286 ATLASSERT(::IsWindow(m_hWnd));
287 // On the fly replacement of LPARAM...
288 BOOL bRes = TBase::GetItem(pItem);
289 if( bRes && (pItem->mask & TVIF_PARAM) != 0 ) {
290 IProperty* prop = reinterpret_cast<IProperty*>(TBase::GetItemData(pItem->hItem));
291 ATLASSERT(prop);
292 if( prop == NULL ) return FALSE;
293 pItem->lParam = prop->GetItemData();
294 }
295 return bRes;
296 }
297
298 BOOL SetItem(LPTVITEM pItem)
299 {

Callers

nothing calls this directly

Calls 2

GetItemDataFunction · 0.70
GetItemDataMethod · 0.45

Tested by

no test coverage detected