Community
Participate
Working Groups
Please run the attached snippet. The table is still showing.
Created attachment 288075 [details] Snippet to reproduce
Created attachment 288076 [details] Screenshot on Windows 10
`table.setItemCount()` calls `new TableItem()`, which calls `setDeferResize()`, which manipulates `WM_SETREDRAW`, which makes invisible window visible. `Control.setRedraw()` has a comment about this side effect. MSDN says [1]: Passing a WM_SETREDRAW message to the DefWindowProc function removes the WS_VISIBLE style from the window when wParam is set to FALSE. Although the window content remains visible on screen, the IsWindowVisible function returns FALSE when called on a window in this state. Passing a WM_SETREDRAW message to the DefWindowProc function adds the WS_VISIBLE style to the window, if not set, when wParam is set to TRUE. If your application sends the WM_SETREDRAW message with wParam set to TRUE to a hidden window, then the window becomes visible. [1] https://docs.microsoft.com/en-us/windows/win32/gdi/wm-setredraw
duplicate of bug 552277
*** Bug 552277 has been marked as a duplicate of this bug. ***
Moved this bug to github: https://github.com/eclipse-platform/eclipse.platform.swt/issues/223