reactos/dll/win32/browseui/bandproxy.h
Katayama Hirofumi MZ bb297bc351
[BROWSEUI] Use STDMETHOD macro and keyword override (#6569)
For simplicity and short typing.
JIRA issue: CORE-19469
- Replace "virtual HRESULT 
  STDMETHODCALLTYPE m"
  with "STDMETHOD(m)"
  (m is a method name).
- Replace "virtual t
  STDMETHODCALLTYPE m"
  with "STDMETHOD_(t, m)"
 (t is a type. m is a method name).
- Use "override" keyword as possible.
2024-03-05 00:53:11 +09:00

52 lines
1.7 KiB
C++

/*
* ReactOS Explorer
*
* Copyright 2009 Andrew Hill <ash77 at domain reactos.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#pragma once
class CBandProxy :
public CComCoClass<CBandProxy, &CLSID_BandProxy>,
public CComObjectRootEx<CComMultiThreadModelNoCS>,
public IBandProxy
{
private:
CComPtr<IUnknown> fSite;
public:
CBandProxy();
~CBandProxy();
HRESULT FindBrowserWindow(IUnknown **browser);
// *** IBandProxy methods ***
STDMETHOD(SetSite)(IUnknown *paramC) override;
STDMETHOD(CreateNewWindow)(long paramC) override;
STDMETHOD(GetBrowserWindow)(IUnknown **paramC) override;
STDMETHOD(IsConnected)() override;
STDMETHOD(NavigateToPIDL)(LPCITEMIDLIST pidl) override;
STDMETHOD(NavigateToURL)(long paramC, long param10) override;
DECLARE_REGISTRY_RESOURCEID(IDR_BANDPROXY)
DECLARE_NOT_AGGREGATABLE(CBandProxy)
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(CBandProxy)
COM_INTERFACE_ENTRY_IID(IID_IBandProxy, IBandProxy)
END_COM_MAP()
};