Mercurial > projects > dwt-win
comparison dwt/widgets/Decorations.d @ 320:da968414c383
Merge changes SWT 3.4.1
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 03 Nov 2008 21:58:40 +0100 |
parents | 27244095ce14 |
children |
comparison
equal
deleted
inserted
replaced
319:71b78d56f01f | 320:da968414c383 |
---|---|
1403 resized = true; | 1403 resized = true; |
1404 Rectangle rect = getClientArea (); | 1404 Rectangle rect = getClientArea (); |
1405 oldWidth = rect.width; | 1405 oldWidth = rect.width; |
1406 oldHeight = rect.height; | 1406 oldHeight = rect.height; |
1407 } | 1407 } |
1408 OS.UpdateWindow (handle); | 1408 /* |
1409 * Bug in Windows. On Vista using the Classic theme, | |
1410 * when the window is hung and UpdateWindow() is called, | |
1411 * nothing is drawn, and outstanding WM_PAINTs are cleared. | |
1412 * This causes pixel corruption. The fix is to avoid calling | |
1413 * update on hung windows. | |
1414 */ | |
1415 bool update = true; | |
1416 if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (6, 0) && !OS.IsAppThemed ()) { | |
1417 update = !OS.IsHungAppWindow (handle); | |
1418 } | |
1419 if (update) OS.UpdateWindow (handle); | |
1409 } | 1420 } |
1410 } else { | 1421 } else { |
1411 static if (!OS.IsWinCE) { | 1422 static if (!OS.IsWinCE) { |
1412 if (OS.IsIconic (handle)) { | 1423 if (OS.IsIconic (handle)) { |
1413 swFlags = OS.SW_SHOWMINNOACTIVE; | 1424 swFlags = OS.SW_SHOWMINNOACTIVE; |