Page 1 of 3

Windows API is stupid!

Posted: Sat Jun 21, 2008 5:03 pm
by netmaestro
OK, I'm getting frustrated. I've written what I feel is a vast improvement on the PB ResizeWindow command, mostly based on WinAPI and the friggin' thing is slower than it should be, doesn't work properly and actually ends up damaging the window. I just don't get it. I've made a quick exe for you to test as I can't share the source just yet, so if anyone could a) see if it is working on your system and b) possibly suggest improvements, I'd really appreciate it. When it's finished and working properly I want to submit it to Fred for consideration as a replacement of the current ResizeWindow command.

https://lloydsplace.com/resize.exe

It's not obvious but you can press ESC to quit.

Source code and all program resources can be downloaded at: https://lloydsplace.com/winapistupid.zip

Posted: Sat Jun 21, 2008 5:13 pm
by Inf0Byt3
:lol:

Brilliant! I want this in PB's command set :).

Posted: Sat Jun 21, 2008 5:15 pm
by AND51
:lol:

There's 1 mistaken issue: if you click the Bauarbeiter, the Bauarbeiter gets into the foreground; If you click the window, the window get's into the foreground (and overlaps the Bauarbeiter, if the Bauarbeiter walks from the right to the left).

Ansonsten: Well done! :D

Posted: Sat Jun 21, 2008 5:25 pm
by rsts
:D

I'd like to see Fred add it, but it appears you're correct, it does seem to damage the window. Perhaps Sparkie can help?


cheers

Posted: Sat Jun 21, 2008 5:27 pm
by netmaestro
If you click the window, the window get's into the foreground (and overlaps the Bauarbeiter
Fixed, thanks!

Posted: Sat Jun 21, 2008 5:38 pm
by thefool
Window resizes like a charm here.
Windows XP pro

Posted: Sat Jun 21, 2008 5:38 pm
by AND51
Not really.
I see, what you've corrected. But when clicking the window now, sometimes, the bauarbeiter flickers. In rare cases, it is still so, that the window overlaps him:

Posted: Sat Jun 21, 2008 5:46 pm
by milan1612
:lol:

Posted: Sat Jun 21, 2008 5:50 pm
by netmaestro
But when clicking the window now, sometimes, the bauarbeiter flickers. In rare cases, it is still so, that the window overlaps him
Fixed. Forgot to include doubleclicks.

Posted: Sat Jun 21, 2008 5:53 pm
by srod
:lol:

Posted: Sat Jun 21, 2008 5:55 pm
by Fred
Indeed, would be nice to have it fixed, so we can include it ;)

Posted: Sat Jun 21, 2008 7:45 pm
by ricardo
Veeeery nice!

Posted: Sat Jun 21, 2008 8:42 pm
by Berikco
Hehe, very cool ResizeWindow replacement 8)

Posted: Sat Jun 21, 2008 8:52 pm
by Derek
Neat, works fine on Vista. :wink:

Posted: Sat Jun 21, 2008 8:57 pm
by Sparkie
Works just fine here. Nice work netmaestro 8)