mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 15:31:43 +00:00
[EXPLORER] Use STDMETHODIMP and override (#7645)
Follow the standard way. JIRA issue: CORE-19469 - Use STDMETHODIMP and override keyword instead of virtual HRESULT STDMETHODCALLTYPE. - Delete CTaskBand::ProcessMessage and CTaskBand::ContainsWindow methods. I think they are useless.
This commit is contained in:
parent
56988ffbf8
commit
853b8ebd02
9 changed files with 201 additions and 149 deletions
|
@ -145,12 +145,12 @@ public:
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
virtual HRESULT STDMETHODCALLTYPE
|
||||
QueryContextMenu(HMENU hPopup,
|
||||
UINT indexMenu,
|
||||
UINT idCmdFirst,
|
||||
UINT idCmdLast,
|
||||
UINT uFlags)
|
||||
STDMETHODIMP
|
||||
QueryContextMenu(HMENU hPopup,
|
||||
UINT indexMenu,
|
||||
UINT idCmdFirst,
|
||||
UINT idCmdLast,
|
||||
UINT uFlags) override
|
||||
{
|
||||
LPITEMIDLIST pidlStart;
|
||||
CComPtr<IShellFolder> psfDesktop;
|
||||
|
@ -189,8 +189,8 @@ public:
|
|||
return hRet;
|
||||
}
|
||||
|
||||
virtual HRESULT STDMETHODCALLTYPE
|
||||
InvokeCommand(LPCMINVOKECOMMANDINFO lpici)
|
||||
STDMETHODIMP
|
||||
InvokeCommand(LPCMINVOKECOMMANDINFO lpici) override
|
||||
{
|
||||
UINT uiCmdId = PtrToUlong(lpici->lpVerb);
|
||||
if (!IsShellCmdId(uiCmdId))
|
||||
|
@ -229,12 +229,13 @@ public:
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
virtual HRESULT STDMETHODCALLTYPE
|
||||
GetCommandString(UINT_PTR idCmd,
|
||||
UINT uType,
|
||||
UINT *pwReserved,
|
||||
LPSTR pszName,
|
||||
UINT cchMax)
|
||||
STDMETHODIMP
|
||||
GetCommandString(
|
||||
UINT_PTR idCmd,
|
||||
UINT uType,
|
||||
UINT *pwReserved,
|
||||
LPSTR pszName,
|
||||
UINT cchMax) override
|
||||
{
|
||||
if (!IsShellCmdId(idCmd) && m_Inner)
|
||||
return m_Inner->GetCommandString(idCmd, uType, pwReserved, pszName, cchMax);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue