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

Method CopyTo

Libraries/TabbingFramework/TabbedMDISave.cpp:517–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515}
516
517STDMETHODIMP 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

Callers 6

get_NameMethod · 0.80
get_DisplayNameMethod · 0.80
get_DescriptionMethod · 0.80
get_UserDataMethod · 0.80
get_SubItemsMethod · 0.80
FindModifiedMethod · 0.80

Calls 10

put_WindowMethod · 0.80
put_NameMethod · 0.80
put_DisplayNameMethod · 0.80
put_DescriptionMethod · 0.80
put_LastModifiedUTCMethod · 0.80
put_IconMethod · 0.80
putref_UserDataMethod · 0.80
get_SubItemsMethod · 0.80
InsertListMethod · 0.80
ClearMethod · 0.45

Tested by

no test coverage detected