Windows API
ID #1007
How to know if user leave the application?
It will be usefull to know if application is in focus:
hForWnd UNSIGNED ForThreadID ULONG ForProcessID ULONG
CODE hForWnd = GetForegroundWindow() ForThreadID = GetWindowThreadProcessId(hForWnd, ForProcessID) IF ForProcessID = GetCurrentProcessID() ! Application is in focus END
Tags: application, user, focus
Related entries:
- How to prevent running of Application Wizard creating new application?
- How to change first calling procedure when application started?
- How to run application that will not be displayed in task bar?
- How to read from application environment variable?
- How to know in which control mouse cursor is (before ACCEPT)?
Last update: 2007-07-17 10:26
Author: Aleksey Timkov
Revision: 1.0
You can comment on this entry