summaryrefslogtreecommitdiff
path: root/plugins/clist_nicer/SRC/clnplus.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/clist_nicer/SRC/clnplus.cpp')
-rw-r--r--plugins/clist_nicer/SRC/clnplus.cpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/plugins/clist_nicer/SRC/clnplus.cpp b/plugins/clist_nicer/SRC/clnplus.cpp
new file mode 100644
index 0000000000..24c5fdddff
--- /dev/null
+++ b/plugins/clist_nicer/SRC/clnplus.cpp
@@ -0,0 +1,40 @@
+/*
+ * test for gdi+
+ */
+
+#include <commonheaders.h>
+#include <shobjidl.h>
+
+#define _WIN32_WINNT 0x0501
+#define _WIN32_IE 0x0501
+
+#define _CLN_GDIP
+
+
+#undef Translate
+
+void RemoveFromTaskBar(HWND hWnd)
+{
+ ITaskbarList *pTaskbarList = NULL;
+
+ if (SUCCEEDED(CoCreateInstance(CLSID_TaskbarList, 0, CLSCTX_INPROC_SERVER, IID_ITaskbarList,
+ (void **)(&pTaskbarList))) && pTaskbarList != NULL) {
+ if (SUCCEEDED(pTaskbarList->HrInit())) {
+ pTaskbarList->DeleteTab(hWnd);
+ }
+ pTaskbarList->Release();
+ }
+}
+
+void AddToTaskBar(HWND hWnd)
+{
+ ITaskbarList *pTaskbarList = NULL;
+
+ if (SUCCEEDED(CoCreateInstance(CLSID_TaskbarList, 0, CLSCTX_INPROC_SERVER, IID_ITaskbarList,
+ (void **)(&pTaskbarList))) && pTaskbarList != NULL) {
+ if (SUCCEEDED(pTaskbarList->HrInit())) {
+ pTaskbarList->AddTab(hWnd);
+ }
+ pTaskbarList->Release();
+ }
+}