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 / How to detect if my application is inactive?

Author
Message
Szymat
14
Years of Service
User Offline
Joined: 17th Oct 2010
Location:
Posted: 8th Jan 2012 13:35
How to detect if my application is inactive? I have my application and
I'm repositioning mouse X and Y to the center of my application co I can have my own cool mouse. I want to detect if application is inactive, for example user switched to some other window. Please help.
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 8th Jan 2012 13:57
HWND GetFocus(void) will tell you which window has focus.

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!
Szymat
14
Years of Service
User Offline
Joined: 17th Oct 2010
Location:
Posted: 8th Jan 2012 14:11 Edited at: 8th Jan 2012 14:47
Damn, I was hoping I can avoide WinAPI ;p

It helped, thanks

Login to post a reply

Server time is: 2024-11-19 04:37:55
Your offset time is: 2024-11-19 04:37:55