Hi,
Is it possible to intercept the window transition event to the background/foreground ?
Hi,
Is it possible to intercept the window transition event to the background/foreground ?
Use the WM_ACTIVATE message in the application's main window procedure. This message indicates window activation changes (activating/deactivating).You may need to inherit a Class TMyWindow from TWindow and implement support for WM_ACTIVATE
Combine with the LOWORD of wParam to check the activation state (e.g., WA_INACTIVE for background).
Thank you, Antonio! I'll try.