Why does `SW_HIDE` leave a ghost after forcibly setting a game's window style to `WS_POPUP`?

93 Views Asked by At

I am trying to hide Factorio window after removing its border by setting its style to WS_POPUP. When I call ShowWindow(factorio, SW_HIDE) the window leaves behind a black box, that is transparent to clicks, can not be activated, does not appear in the taskbar, but keeps being rendered where the original window would be (including z-order).

0

There are 0 best solutions below