summaryrefslogtreecommitdiff
path: root/plugins/Clist_nicer/src/clnplus.cpp
blob: eed275b1e3702b13f38defd024e7e4af31dbeccc (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 <commonheaders.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);
}