From 661fea5aa92b1e3c0b888035b67612307fa79a35 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 4 Jan 2014 17:22:05 +0100 Subject: Bug 935: NEWT Windows Window-Icon: Fix Window-Icon Visibility after Reparenting CHILD -> TOP Hiding the window via 'ShowWindow(.., SW_HIDE)' before reparenting and subsequent style change incl. visibility renders the Window-Icon visible. --- src/newt/native/WindowsWindow.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/newt/native/WindowsWindow.c b/src/newt/native/WindowsWindow.c index 2a16dce57..8671ee2e0 100644 --- a/src/newt/native/WindowsWindow.c +++ b/src/newt/native/WindowsWindow.c @@ -2217,6 +2217,10 @@ JNIEXPORT void JNICALL Java_jogamp_newt_driver_windows_WindowDriver_reconfigureW // if( TST_FLAG_CHANGE_PARENTING(flags) && NULL == hwndP ) { // TOP: in -> out + + // HIDE to allow setting ICONs (Windows bug?) .. WS_VISIBLE (style) will reset visibility + ShowWindow(hwnd, SW_HIDE); + SetParent(hwnd, NULL); } -- cgit v1.2.3