| 685 | } |
| 686 | |
| 687 | LRESULT CSaveModifiedItemsDialog::OnDestroy(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled) |
| 688 | { |
| 689 | LONG dwListStyle = m_list.GetWindowLong(GWL_STYLE); |
| 690 | if((dwListStyle & LVS_SHAREIMAGELISTS) == LVS_SHAREIMAGELISTS) |
| 691 | { |
| 692 | // We're responsible for cleaning up the list view's image list |
| 693 | if(!m_images.IsNull()) |
| 694 | { |
| 695 | m_images.Destroy(); |
| 696 | } |
| 697 | } |
| 698 | |
| 699 | if(!m_stateImages.IsNull()) |
| 700 | { |
| 701 | m_stateImages.Destroy(); |
| 702 | } |
| 703 | |
| 704 | if(m_dialogIcon != NULL) |
| 705 | { |
| 706 | ::DestroyIcon(m_dialogIcon); |
| 707 | m_dialogIcon = NULL; |
| 708 | } |
| 709 | |
| 710 | if(m_list.IsWindow()) |
| 711 | { |
| 712 | m_list.UnsubclassWindow(); |
| 713 | } |
| 714 | |
| 715 | // Be sure others see the message (especially DefWindowProc) |
| 716 | bHandled = FALSE; |
| 717 | |
| 718 | return 0; |
| 719 | } |
| 720 | |
| 721 | LRESULT CSaveModifiedItemsDialog::OnYes(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/) |
| 722 | { |
nothing calls this directly
no test coverage detected