Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] Faster Window-modification

Author
Message
RedFlames
17
Years of Service
User Offline
Joined: 25th Aug 2007
Location: Germania
Posted: 11th May 2008 16:56
I just searched some windows dlls for useful functions and found some to resize,position and rename the DBP window faster:


(u need matrix1utils to get the window handle)

my results:
Windows Dll: 10 - 30 ms (normally 15 )
DBP commands: 60 - 150 ms (normally 100 - 110)
matrix1utils: 40 - 120 ms (normally 90 - 100)

Im wondering why its 10x faster although it even loads and deletes the dll in those 15ms ...

IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 11th May 2008 17:36
I can't say about the standard commands but my commands check the window is valid - your replacements don't.

In addition, the SET WINDOW CLIENT SIZE command is NOT equivalent to any of the other commands you are using elsewhere. It sets the size of the client area (excluding borders and title bar) - the others set the size of the window, which is much easier.

My final observation is to ask why the heck you are worried about the speed of these commands when you don't need them to be fast? I'd spend my time worrying about the speed of more important things if I were you

Login to post a reply

Server time is: 2024-11-25 02:48:03
Your offset time is: 2024-11-25 02:48:03