mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 14:30:57 +00:00
c8f216eafd
CORE-15424
49 lines
1.4 KiB
C++
49 lines
1.4 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 ***/
|
|
virtual HRESULT WINAPI MarkFullscreenWindow(HWND hwnd, BOOL fFullscreen);
|
|
|
|
/*** ITaskbarList methods ***/
|
|
virtual HRESULT STDMETHODCALLTYPE HrInit();
|
|
virtual HRESULT STDMETHODCALLTYPE AddTab(HWND hwnd);
|
|
virtual HRESULT STDMETHODCALLTYPE DeleteTab(HWND hwnd);
|
|
virtual HRESULT STDMETHODCALLTYPE ActivateTab(HWND hwnd);
|
|
virtual HRESULT STDMETHODCALLTYPE SetActiveAlt(HWND hwnd);
|
|
|
|
|
|
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_
|