IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Oh the wretched POS that is Windows!
I traced it to the Windows API call BringWindowToTop. The call flat out refuses to work. The window only gets on top of other GDK windows...
--

Comrades, don't let your food drop on the floor - three dogs already died of food poisoning.
New As Designed?
If the window is a child window, the top-level parent window associated with the child window is activated.

[link|http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/Windowing/Windows/WindowReference/WindowFunctions/BringWindowToTop.asp|http://msdn.microsof...ngWindowToTop.asp]
--
Chris Altmann
New They are all top-level windows
and have no ownwer or parent according to Spy++.

Using Spy++, I cannot see any difference in the window style between GDK's and regular top-level stuff.
--

Comrades, don't let your food drop on the floor - three dogs already died of food poisoning.
New OK, after some interaction with GDK people, I got a patch
Am soo proud of myself!

Tricked the Win32 API into doing something it's not supposed to do. I'll post it here, too :)

So far it doesn't seem like the patch will be accepted, though. Zero interest.

>>>>>>>>>>>>>>>>>>>>>>>>>
1420c1420,1443
< API_CALL (BringWindowToTop, (GDK_WINDOW_HWND (window)));
---
>
> // API_CALL (BringWindowToTop, (GDK_WINDOW_HWND (window))); the
> // above call only brings us above other background windows, but
> // not on top of foreground windows - see documentation for
> // SetForegroundWindow call and for SetWindowPos call (read the
> // remarks for SetWindowPos very carefully)
> //
> // Instead of the above call, we make two calls: one to make the
> // window topmost, one to lower it down to non-topmost
> // state. This brings us exactly where we wanted to be, on top
> // of all non-topmost windows, without grabbing focus or
> // foreground status.
>
> API_CALL (SetWindowPos, (GDK_WINDOW_HWND (window),
> HWND_TOPMOST, 0,0,0,0,
> SWP_NOACTIVATE | SWP_NOMOVE |
> SWP_NOSIZE | SWP_SHOWWINDOW |
> SWP_NOSENDCHANGING ));
>
> API_CALL (SetWindowPos, (GDK_WINDOW_HWND (window),
> HWND_NOTOPMOST, 0,0,0,0,
> SWP_NOACTIVATE | SWP_NOMOVE |
> SWP_NOSIZE));
>
<<<<<<<<<<<<<<<<<<<<<<<<<
--

This guy's ahead of his time! He's using quantum programming methods: in universes where invalid data is passed to this function, it does not return. Thus you are ensured that you will only have valid data after calling it. Optimally you'd destroy the universe on failure, but computers haven't quite advanced to that level yet.

-- [link|http://thedailywtf.com/archive/2004/10/26/2920.aspx|The] Daily WTF

     Wish me luck - (Arkadiy) - (6)
         Luck! -NT - (Another Scott)
         While you're at it ... - (drewk)
         Oh the wretched POS that is Windows! - (Arkadiy) - (3)
             As Designed? - (altmann) - (1)
                 They are all top-level windows - (Arkadiy)
             OK, after some interaction with GDK people, I got a patch - (Arkadiy)

Her English wasn't so good...
73 ms