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

Method InsertList

Libraries/TabbingFramework/TabbedMDISave.cpp:223–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223STDMETHODIMP CTabbedMDIChildModifiedList::InsertList(
224 long index, ITabbedMDIChildModifiedList* list)
225{
226 if(list == NULL)
227 {
228 return E_INVALIDARG;
229 }
230
231 HRESULT hr = S_OK;
232
233 long count = 0;
234 list->get_Count(&count);
235
236 if(index < 0)
237 {
238 index = count;
239 }
240
241 for(long i=0; i<count; ++i)
242 {
243 ATL::CComPtr<ITabbedMDIChildModifiedItem> item;
244 list->get_Item(i, &item);
245
246 this->Insert(index + i, item);
247 }
248
249 return hr;
250}
251
252STDMETHODIMP CTabbedMDIChildModifiedList::Remove(
253 long index, ITabbedMDIChildModifiedItem** item)

Callers 1

CopyToMethod · 0.80

Calls 3

InsertMethod · 0.95
get_CountMethod · 0.80
get_ItemMethod · 0.80

Tested by

no test coverage detected