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

Function SetSubItem

Libraries/PropertyGrid/PropertyGrid.h:307–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305 }
306
307 BOOL SetSubItem(int nItem, int nSubItem, HPROPERTY hProp)
308 {
309 ATLASSERT(::IsWindow(m_hWnd));
310 ATLASSERT(hProp);
311 ATLASSERT(nSubItem>=0);
312 ATLASSERT(nSubItem<m_nColumns);
313 IProperty** props = reinterpret_cast<IProperty**>(TBase::GetItemData(nItem));
314 ATLASSERT(props);
315 ATLASSERT(props[nSubItem]==NULL); // Do not replace HPROPERTY nodes.
316 if( props == NULL ) return FALSE;
317 if( nSubItem < 0 || nSubItem >= m_nColumns ) return FALSE;
318 props[nSubItem] = hProp;
319 hProp->SetOwner(m_hWnd, NULL);
320 // Trick ListView into thinking there is a subitem...
321 return TBase::SetItemText(nItem, nSubItem, _T(""));
322 }
323
324 BOOL GetItemText(int iItem, int iSubItem, LPTSTR pstrText, UINT cchMax) const
325 {

Callers

nothing calls this directly

Calls 3

SetItemTextFunction · 0.85
GetItemDataFunction · 0.70
SetOwnerMethod · 0.45

Tested by

no test coverage detected