| 719 | } |
| 720 | |
| 721 | LRESULT 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 | |
| 754 | LRESULT CSaveModifiedItemsDialog::OnEndDialog(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/) |
| 755 | { |
nothing calls this directly
no test coverage detected