| 221 | } |
| 222 | |
| 223 | STDMETHODIMP 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 | |
| 252 | STDMETHODIMP CTabbedMDIChildModifiedList::Remove( |
| 253 | long index, ITabbedMDIChildModifiedItem** item) |