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

Method OnYes

Libraries/TabbingFramework/TabbedMDISave.cpp:721–752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

719}
720
721LRESULT CSaveModifiedItemsDialog::OnYes(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
722{
723 if(m_modifiedList)
724 {
725 int count = m_list.GetItemCount();
726 for(int i=0; i<count; ++i)
727 {
728 CheckState checkState = this->GetTristateCheckState(i);
729 if(checkState == eCheckState_Unchecked)
730 {
731 ATL::CComQIPtr<ITabbedMDIChildModifiedItem> item(this->GetIUnknownForItem(i));
732 if(item)
733 {
734 ATL::CComPtr<ITabbedMDIChildModifiedList> parentList;
735 item->get_ParentList(&parentList);
736 if(parentList)
737 {
738 long index = -1;
739 parentList->get_Index(item, &index);
740 if(index >= 0)
741 {
742 parentList->Remove(index);
743 }
744 }
745 }
746 }
747 }
748 }
749
750 this->EndDialog(wID);
751 return 0;
752}
753
754LRESULT CSaveModifiedItemsDialog::OnEndDialog(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
755{

Callers

nothing calls this directly

Calls 5

GetTristateCheckStateMethod · 0.95
GetIUnknownForItemMethod · 0.95
get_ParentListMethod · 0.80
get_IndexMethod · 0.80
RemoveMethod · 0.45

Tested by

no test coverage detected