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.

Dark GDK / DGSDK app 'active'?

Author
Message
Lampton Worm
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 20th Mar 2006 01:03
Hi,

Is it possible to find out if your DGSDK app is the current in-focus window? The reason is because I hide/contain the mouse within a window, and when someone ctrl-tab's to something else, I want to release/show to mouse, then constrain again when the user tabs back to my app.. I had a play with dbScreenInvalid but I don't think this is the right command. Any ideas?

Cheers
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 20th Mar 2006 15:06
Use the windows BOOL IsIconic(HWND) function, using the hWnd from the globstruct.

You can use something like this to stop your app grabbing all of the processor time while it's mininised:


For free Plug-ins and source code http://www.matrix1.demon.co.uk

Login to post a reply

Server time is: 2024-05-27 05:12:57
Your offset time is: 2024-05-27 05:12:57