diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-08-01 05:54:33 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-08-01 05:54:33 +0000 |
commit | 8d284bebe3c2392680949c06bbd17253960ce0f8 (patch) | |
tree | edc69c2a8a0e3d15a8d31b38b88b2843585bda0e /plugins/Clist_nicer/src/clnplus.cpp | |
parent | ee71ed09de7ce60a6a3d60c778f60db4f3e0a9b8 (diff) |
git-svn-id: http://svn.miranda-ng.org/main/trunk@1295 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/src/clnplus.cpp')
-rw-r--r-- | plugins/Clist_nicer/src/clnplus.cpp | 40 |
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();
+ }
+}
|