| 490 | } |
| 491 | |
| 492 | STDMETHODIMP 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 | |
| 517 | STDMETHODIMP CTabbedMDIChildModifiedItem::CopyTo( |
| 518 | ITabbedMDIChildModifiedItem* destination) |
no test coverage detected