https://bugs.winehq.org/show_bug.cgi?id=54233
--- Comment #1 from Rafał Mużyło galtgendo@o2.pl --- That article could be made significantly better with just a brief look at https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwi....
While I can't tell what went wrong, that pair of calls is to induce a particular Z-order of the windows (first it makes it a topmost window to move it above all non-topmost, then switches it back to non-topmost status, which effectively makes it the upper most window among not-topmost).
I'm not really proficient at reading decompiled pseudocode, but it looks mildly suspicious that some values are hard-coded (0x1e6 and 0x236)...(probably an artifact of the design tools...)