HRESULT STDMETHODCALLTYPE CAddressBand::CloseDW(DWORD dwReserved) { ShowDW(FALSE); if (IsWindow()) DestroyWindow(); m_hWnd = NULL; CComPtr<IShellService> pservice; HRESULT hres = fAddressEditBox->QueryInterface(IID_PPV_ARG(IShellService, &pservice)); if (SUCCEEDED(hres )) pservice->SetOwner(NULL); if (fAddressEditBox) fAddressEditBox.Release(); if (fSite) fSite.Release(); if (m_himlNormal) ImageList_Destroy(m_himlNormal); if (m_himlHot) ImageList_Destroy(m_himlHot); return S_OK; }
STDMETHODIMP CUpgradrHelperbar::CloseDW(DWORD dwReserved) { ShowDW(FALSE); // CloseDW purposely does not destroy the window. We leave that to the destructor. return S_OK; }
STDMETHODIMP CXRefreshToolbar::CloseDW(DWORD dwReserved) { DT(TRACE_I(FS(_T("Toolbar[%08X]: CloseDW(%08X)"), this, dwReserved))); ShowDW(FALSE); // CloseDW purposely does not destroy the window. We leave that to the destructor. return S_OK; }
STDMETHODIMP CPerfBar::CloseDW(DWORD dwReserved) { UNREFERENCED_PARAMETER(dwReserved); ShowDW(FALSE); if (IsWindow()) { DestroyWindow(); } return S_OK; }
STDMETHODIMP ExplorerBar::CloseDW( DWORD inReserved ) { DEBUG_UNUSED( inReserved ); ShowDW( FALSE ); if( mWindow.GetSafeHwnd() ) { mWindow.SendMessage( WM_CLOSE ); } return( S_OK ); }
HRESULT STDMETHODCALLTYPE CBrandBand::CloseDW(DWORD dwReserved) { ShowDW(FALSE); if (IsWindow()) DestroyWindow(); m_hWnd = NULL; return S_OK; }
STDMETHODIMP CDeskBand::CloseDW(DWORD dwReserved) { TRACE_ENTER("CDeskBand::CloseDW"); ShowDW(FALSE); delete m_TimerBox; m_TimerBox = NULL; if (IsWindow(m_hWnd)) DestroyWindow(m_hWnd); m_hWnd = NULL; TRACE_EXIT(); return S_OK; }