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

Method OnListViewInsertItem

Libraries/TabbingFramework/TabbedMDISave.cpp:760–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

758}
759
760LRESULT CSaveModifiedItemsDialog::OnListViewInsertItem(int /*idCtrl*/, LPNMHDR pnmh, BOOL& bHandled)
761{
762 bHandled = TRUE;
763 LPNMLISTVIEW pnmLV = (LPNMLISTVIEW)pnmh;
764 if(pnmLV != NULL)
765 {
766 // It'd be nice if they set the lParam of NMLISTVIEW, but they don't.
767 // Only iItem is valid
768 //LPARAM lParam = pnmLV->lParam;
769 //if(lParam != NULL)
770 //{
771 // // Keep an AddRef around for the item, and Release in OnDeleteItem
772 // ((IUnknown*)lParam)->AddRef();
773 //}
774 IUnknown* punk = this->GetIUnknownForItem(pnmLV->iItem);
775 if(punk)
776 {
777 // Keep an AddRef around for the item, and Release in OnDeleteItem
778 punk->AddRef();
779 }
780 }
781 return 0;
782}
783
784LRESULT CSaveModifiedItemsDialog::OnListViewDeleteItem(int /*idCtrl*/, LPNMHDR pnmh, BOOL& bHandled)
785{

Callers

nothing calls this directly

Calls 1

GetIUnknownForItemMethod · 0.95

Tested by

no test coverage detected