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

Method OnDestroy

Libraries/TabbingFramework/TabbedMDISave.cpp:687–719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

685}
686
687LRESULT 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
721LRESULT CSaveModifiedItemsDialog::OnYes(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
722{

Callers

nothing calls this directly

Calls 3

DestroyMethod · 0.80
IsNullMethod · 0.45
UnsubclassWindowMethod · 0.45

Tested by

no test coverage detected