| 515 | } |
| 516 | |
| 517 | STDMETHODIMP CTabbedMDIChildModifiedItem::CopyTo( |
| 518 | ITabbedMDIChildModifiedItem* destination) |
| 519 | { |
| 520 | if(destination == NULL) |
| 521 | { |
| 522 | return E_INVALIDARG; |
| 523 | } |
| 524 | |
| 525 | destination->put_Window(m_window); |
| 526 | destination->put_Name(m_name); |
| 527 | destination->put_DisplayName(m_displayName); |
| 528 | destination->put_Description(m_description); |
| 529 | destination->put_LastModifiedUTC(m_lastModified); |
| 530 | destination->put_Icon(m_icon); |
| 531 | destination->putref_UserData(m_userData); |
| 532 | |
| 533 | // The destination keeps its current parent |
| 534 | //destination->putref_ParentList(m_parentList); |
| 535 | |
| 536 | ATL::CComPtr<ITabbedMDIChildModifiedList> subItems; |
| 537 | destination->get_SubItems(&subItems); |
| 538 | if(subItems) |
| 539 | { |
| 540 | subItems->Clear(); |
| 541 | |
| 542 | if(m_subItems) |
| 543 | { |
| 544 | subItems->InsertList(-1, m_subItems); |
| 545 | } |
| 546 | } |
| 547 | |
| 548 | return S_OK; |
| 549 | } |
| 550 | |
| 551 | // Methods not exposed over iterface |
| 552 |
no test coverage detected