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

Method FindItemIndex

Libraries/TabbingFramework/TabbedMDISave.cpp:1510–1529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1508}
1509
1510int CSaveModifiedItemsDialog::FindItemIndex(ITabbedMDIChildModifiedItem* item)
1511{
1512 if(item == NULL)
1513 {
1514 return -1;
1515 }
1516
1517 ATL::CComPtr<IUnknown> punkNode;
1518 item->QueryInterface(IID_IUnknown, (void**)&punkNode);
1519 if(punkNode)
1520 {
1521 LVFINDINFO findInfo = {0};
1522 findInfo.flags = LVFI_PARAM;
1523 findInfo.lParam = (LPARAM)(IUnknown*)punkNode.p;
1524
1525 return m_list.FindItem(&findInfo, -1);
1526 }
1527
1528 return -1;
1529}
1530
1531int CSaveModifiedItemsDialog::FindParentIndex(int item)
1532{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected