FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Window transition event
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Window transition event
Posted: Fri Mar 15, 2024 11:36 AM

Hi,

Is it possible to intercept the window transition event to the background/foreground ?

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Window transition event
Posted: Fri Mar 15, 2024 03:51 PM
Dear Yuri,
Use the WM_ACTIVATE message in the application's main window procedure. This message indicates window activation changes (activating/deactivating).
Combine with the LOWORD of wParam to check the activation state (e.g., WA_INACTIVE for background).
You may need to inherit a Class TMyWindow from TWindow and implement support for WM_ACTIVATE

There are some examples in these forums showing how to inherit and modify Method HandleEvent()

https://fivetechsupport.com/forums/viewtopic.php?p=258349&sid=4b8316cfb706cfb5bfa9a662a4a7fb5e#p258349
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Window transition event
Posted: Fri Mar 15, 2024 07:39 PM

Thank you, Antonio! I'll try.

Continue the discussion