mirror of
https://github.com/reactos/reactos.git
synced 2024-10-30 03:27:31 +00:00
bb297bc351
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.
49 lines
1.3 KiB
C++
49 lines
1.3 KiB
C++
/*
|
|
* PROJECT: browseui
|
|
* LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
|
|
* PURPOSE: ITaskbarList header
|
|
* COPYRIGHT: Copyright 2018 Mark Jansen (mark.jansen@reactos.org)
|
|
*/
|
|
|
|
#ifndef _CTASKBARLIST_H_
|
|
#define _CTASKBARLIST_H_
|
|
|
|
class CTaskbarList :
|
|
public CComCoClass<CTaskbarList, &CLSID_TaskbarList>,
|
|
public CComObjectRootEx<CComMultiThreadModelNoCS>,
|
|
public ITaskbarList2
|
|
{
|
|
HWND m_hTaskWnd;
|
|
UINT m_ShellHookMsg;
|
|
|
|
HWND TaskWnd();
|
|
void SendTaskWndShellHook(WPARAM wParam, HWND hWnd);
|
|
|
|
public:
|
|
CTaskbarList();
|
|
virtual ~CTaskbarList();
|
|
|
|
/*** ITaskbarList2 methods ***/
|
|
STDMETHOD(MarkFullscreenWindow)(HWND hwnd, BOOL fFullscreen) override;
|
|
|
|
/*** ITaskbarList methods ***/
|
|
STDMETHOD(HrInit)() override;
|
|
STDMETHOD(AddTab)(HWND hwnd) override;
|
|
STDMETHOD(DeleteTab)(HWND hwnd) override;
|
|
STDMETHOD(ActivateTab)(HWND hwnd) override;
|
|
STDMETHOD(SetActiveAlt)(HWND hwnd) override;
|
|
|
|
DECLARE_REGISTRY_RESOURCEID(IDR_TASKBARLIST)
|
|
DECLARE_NOT_AGGREGATABLE(CTaskbarList)
|
|
|
|
DECLARE_PROTECT_FINAL_CONSTRUCT()
|
|
|
|
BEGIN_COM_MAP(CTaskbarList)
|
|
COM_INTERFACE_ENTRY_IID(IID_ITaskbarList2, ITaskbarList2)
|
|
COM_INTERFACE_ENTRY_IID(IID_ITaskbarList, ITaskbarList)
|
|
END_COM_MAP()
|
|
};
|
|
|
|
|
|
#endif // _CTASKBARLIST_H_
|