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

Method get_SubItems

Libraries/TabbingFramework/TabbedMDISave.cpp:492–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490}
491
492STDMETHODIMP CTabbedMDIChildModifiedItem::get_SubItems(
493 ITabbedMDIChildModifiedList** subItems)
494{
495 // The first time they ask for the sub items, we'll create it.
496 HRESULT hr = S_OK;
497
498 if(m_subItems == NULL)
499 {
500 ATL::CComObject<CTabbedMDIChildModifiedList>* newSubItems = NULL;
501 hr = ATL::CComObject<CTabbedMDIChildModifiedList>::CreateInstance(&newSubItems);
502 if(newSubItems != NULL)
503 {
504 newSubItems->AddRef();
505
506 newSubItems->putref_ParentItem(this);
507
508 m_subItems = newSubItems;
509
510 newSubItems->Release();
511 }
512 }
513
514 return m_subItems.CopyTo(subItems);
515}
516
517STDMETHODIMP CTabbedMDIChildModifiedItem::CopyTo(
518 ITabbedMDIChildModifiedItem* destination)

Callers 3

CopyToMethod · 0.80
FindUsedColumnsMethod · 0.80
AddItemsMethod · 0.80

Calls 3

putref_ParentItemMethod · 0.80
ReleaseMethod · 0.80
CopyToMethod · 0.80

Tested by

no test coverage detected