| 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); |
|---|