How can this situation be fixed? (EnumWindows)

Questions about Wine on Linux
Locked
zhaxok
Newbie
Newbie
Posts: 3
Joined: Wed May 03, 2023 1:50 am

How can this situation be fixed? (EnumWindows)

Post by zhaxok »

I implemented a simple program on Windows that calls EnumWindows and calls GetWindowLongW(hwnd, GWL_STYLE) in the callback function. The program expands some functionality only when the return value &WS_VISIBLE is TRUE, and everything works fine on Windows without any problems. However, when I ported it to Linux and ran it using Wine, there was an issue. Please note that only this one Windows program is running at the same time. Unfortunately, none of the windows enumerated have the WS_VISIBLE attribute, causing the program to malfunction.
So, how can I fix this? I believe it is because the native visible windows on Linux are not being called back. Thank you very much!
Locked