Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java12
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Shell.java12
2 files changed, 12 insertions, 12 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
index d3de3e489c..d621b05f68 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
@@ -4771,18 +4771,6 @@ void wakeThread () {
}
long /*int*/ windowProc (long /*int*/ hwnd, long /*int*/ msg, long /*int*/ wParam, long /*int*/ lParam) {
- if ((int)/*64*/msg == TASKBARBUTTONCREATED) {
- if (taskBar != null) {
- TaskItem [] items = taskBar.items;
- for (int i=0; i<items.length; i++) {
- TaskItem item = items [i];
- if (item != null && item.shell != null && item.shell.handle == hwnd) {
- item.recreate ();
- break;
- }
- }
- }
- }
if (lastControl != null && lastHwnd == hwnd) {
return lastControl.windowProc (hwnd, (int)/*64*/msg, wParam, lParam);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Shell.java
index c5da1593d1..6bcc71c7b7 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Shell.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Shell.java
@@ -2144,6 +2144,18 @@ long /*int*/ windowProc (long /*int*/ hwnd, int msg, long /*int*/ wParam, long /
}
return callWindowProc (hwnd, msg, wParam, lParam);
}
+ if (hwnd == handle) {
+ if ((int)/*64*/msg == Display.TASKBARBUTTONCREATED) {
+ if (display.taskBar != null) {
+ for (TaskItem item : display.taskBar.items) {
+ if (item != null && item.shell == this) {
+ item.recreate ();
+ break;
+ }
+ }
+ }
+ }
+ }
return super.windowProc (hwnd, msg, wParam, lParam);
}

Back to the top