ReactOS 0.4.16-dev-340-g0540c21
CTaskbarList Class Reference

#include <CTaskbarList.h>

Inheritance diagram for CTaskbarList:
Collaboration diagram for CTaskbarList:

Public Member Functions

 CTaskbarList ()
 
virtual ~CTaskbarList ()
 
STDMETHOD() MarkFullscreenWindow (HWND hwnd, BOOL fFullscreen) override
 
STDMETHOD() HrInit () override
 
STDMETHOD() AddTab (HWND hwnd) override
 
STDMETHOD() DeleteTab (HWND hwnd) override
 
STDMETHOD() ActivateTab (HWND hwnd) override
 
STDMETHOD() SetActiveAlt (HWND hwnd) override
 
- Public Member Functions inherited from ATL::CComObjectRootEx< CComMultiThreadModelNoCS >
 ~CComObjectRootEx ()
 
ULONG InternalAddRef ()
 
ULONG InternalRelease ()
 
void Lock ()
 
void Unlock ()
 
HRESULT _AtlInitialConstruct ()
 
- Public Member Functions inherited from ATL::CComObjectRootBase
 CComObjectRootBase ()
 
 ~CComObjectRootBase ()
 
void SetVoid (void *)
 
HRESULT _AtlFinalConstruct ()
 
HRESULT FinalConstruct ()
 
void InternalFinalConstructAddRef ()
 
void InternalFinalConstructRelease ()
 
void FinalRelease ()
 
HRESULT MarkFullscreenWindow ([in] HWND hwnd, [in] BOOL fullscreen)
 
HRESULT HrInit ()
 
HRESULT AddTab ([in] HWND hwnd)
 
HRESULT DeleteTab ([in] HWND hwnd)
 
HRESULT ActivateTab ([in] HWND hwnd)
 
HRESULT SetActiveAlt ([in] HWND hwnd)
 
- Public Member Functions inherited from IUnknown
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
ULONG AddRef ()
 
ULONG Release ()
 

Private Member Functions

HWND TaskWnd ()
 
void SendTaskWndShellHook (WPARAM wParam, HWND hWnd)
 

Private Attributes

HWND m_hTaskWnd
 
UINT m_ShellHookMsg
 

Additional Inherited Members

- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 
- Static Public Member Functions inherited from ATL::CComObjectRootBase
static void WINAPI ObjectMain (bool)
 
static const struct _ATL_CATMAP_ENTRYGetCategoryMap ()
 
static HRESULT WINAPI InternalQueryInterface (void *pThis, const _ATL_INTMAP_ENTRY *pEntries, REFIID iid, void **ppvObject)
 
- Public Attributes inherited from ATL::CComObjectRootBase
LONG m_dwRef
 

Detailed Description

Definition at line 11 of file CTaskbarList.h.

Constructor & Destructor Documentation

◆ CTaskbarList()

CTaskbarList::CTaskbarList ( )

Definition at line 17 of file CTaskbarList.cpp.

19{
21}
UINT m_ShellHookMsg
Definition: CTaskbarList.h:17
#define NULL
Definition: types.h:112
#define L(x)
Definition: ntvdm.h:50
UINT WINAPI RegisterWindowMessageW(_In_ LPCWSTR)

◆ ~CTaskbarList()

CTaskbarList::~CTaskbarList ( )
virtual

Definition at line 23 of file CTaskbarList.cpp.

24{
25}

Member Function Documentation

◆ ActivateTab()

HRESULT WINAPI CTaskbarList::ActivateTab ( HWND  hwnd)
override

Implements ITaskbarList.

Definition at line 83 of file CTaskbarList.cpp.

84{
85 SendTaskWndShellHook(HSHELL_WINDOWACTIVATED, hwnd);
86 return S_OK;
87}
void SendTaskWndShellHook(WPARAM wParam, HWND hWnd)
#define S_OK
Definition: intsafe.h:52
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023

◆ AddTab()

HRESULT WINAPI CTaskbarList::AddTab ( HWND  hwnd)
override

Implements ITaskbarList.

Definition at line 71 of file CTaskbarList.cpp.

72{
74 return S_OK;
75}
#define HSHELL_WINDOWCREATED
Definition: winuser.h:1258

◆ DeleteTab()

HRESULT WINAPI CTaskbarList::DeleteTab ( HWND  hwnd)
override

Implements ITaskbarList.

Definition at line 77 of file CTaskbarList.cpp.

78{
80 return S_OK;
81}
#define HSHELL_WINDOWDESTROYED
Definition: winuser.h:1259

◆ HrInit()

HRESULT WINAPI CTaskbarList::HrInit ( )
override

Implements ITaskbarList.

Definition at line 60 of file CTaskbarList.cpp.

61{
62 if (m_ShellHookMsg == NULL)
63 return E_OUTOFMEMORY;
64
65 if (!TaskWnd())
66 return E_HANDLE;
67
68 return S_OK;
69}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define E_HANDLE
Definition: winerror.h:2850

◆ MarkFullscreenWindow()

HRESULT WINAPI CTaskbarList::MarkFullscreenWindow ( HWND  hwnd,
BOOL  fFullscreen 
)
override

Implements ITaskbarList2.

Definition at line 49 of file CTaskbarList.cpp.

50{
52 return E_NOTIMPL;
53}
#define UNIMPLEMENTED
Definition: ntoskrnl.c:15
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ SendTaskWndShellHook()

void CTaskbarList::SendTaskWndShellHook ( WPARAM  wParam,
HWND  hWnd 
)
private

Definition at line 41 of file CTaskbarList.cpp.

42{
43 HWND hTaskWnd = TaskWnd();
44 if (hTaskWnd && m_ShellHookMsg)
46}
HWND hWnd
Definition: settings.c:17
WPARAM wParam
Definition: combotst.c:138
LONG_PTR LPARAM
Definition: windef.h:208
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

Referenced by ActivateTab(), AddTab(), and DeleteTab().

◆ SetActiveAlt()

HRESULT WINAPI CTaskbarList::SetActiveAlt ( HWND  hwnd)
override

Implements ITaskbarList.

Definition at line 89 of file CTaskbarList.cpp.

90{
92 return E_NOTIMPL;
93}

◆ TaskWnd()

HWND CTaskbarList::TaskWnd ( )
private

Definition at line 27 of file CTaskbarList.cpp.

28{
29 HWND hTrayWnd;
31 return m_hTaskWnd;
32
33 hTrayWnd = FindWindowW(L"Shell_TrayWnd", NULL);
34 if (hTrayWnd)
35 {
37 }
38 return m_hTaskWnd;
39}
#define TWM_GETTASKSWITCH
Definition: precomp.h:131
HANDLE HWND
Definition: compat.h:19
BOOL WINAPI IsWindow(_In_opt_ HWND)
HWND WINAPI FindWindowW(_In_opt_ LPCWSTR, _In_opt_ LPCWSTR)

Referenced by HrInit(), and SendTaskWndShellHook().

Member Data Documentation

◆ m_hTaskWnd

HWND CTaskbarList::m_hTaskWnd
private

Definition at line 16 of file CTaskbarList.h.

Referenced by TaskWnd().

◆ m_ShellHookMsg

UINT CTaskbarList::m_ShellHookMsg
private

Definition at line 17 of file CTaskbarList.h.

Referenced by CTaskbarList(), HrInit(), and SendTaskWndShellHook().


The documentation for this class was generated from the following files: