How to detect when the desktop become ative?
Posted: 15 Aug 2022, 02:48
There's any window event that happens or any WINAPI, in could tell me when the desktop 'Progman' becomes the foreground window?
I would like to avoid 'hackish' things like using Settimers constantly checking WinActive or something similar.
So far what I tried was listening to EVENT_SYSTEM_MINIMIZESTART using SetWinEventHook and on each notification compare the title/class to check if it's 'Progman'.
I wonder if there's any 'better' option to do this.
I would like to avoid 'hackish' things like using Settimers constantly checking WinActive or something similar.
So far what I tried was listening to EVENT_SYSTEM_MINIMIZESTART using SetWinEventHook and on each notification compare the title/class to check if it's 'Progman'.
I wonder if there's any 'better' option to do this.