summaryrefslogtreecommitdiff
path: root/plugins/Clist_nicer/src/clnplus.cpp
blob: a59b2ef982ec91da9bba215d006f7f60cef9fe3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * test for gdi+
 */

#include "stdafx.h"
#include <shobjidl.h>
#include "msapi/comptr.h"

#define _CLN_GDIP

#undef Translate

void RemoveFromTaskBar(HWND hWnd)
{
	CComPtr<ITaskbarList> pTaskbarList;
	if (SUCCEEDED(pTaskbarList.CoCreateInstance(CLSID_TaskbarList, NULL, CLSCTX_INPROC_SERVER)))
		if (SUCCEEDED(pTaskbarList->HrInit()))
			pTaskbarList->DeleteTab(hWnd);
}

void AddToTaskBar(HWND hWnd)
{
	CComPtr<ITaskbarList> pTaskbarList;
	if (SUCCEEDED(pTaskbarList.CoCreateInstance(CLSID_TaskbarList, NULL, CLSCTX_INPROC_SERVER)))
		if (SUCCEEDED(pTaskbarList->HrInit()))
			pTaskbarList->AddTab(hWnd);
}