Window transition event

Window transition event

Postby Natter » Fri Mar 15, 2024 11:36 am

Hi,

Is it possible to intercept the window transition event to the background/foreground ?
Natter
 
Posts: 1222
Joined: Mon May 14, 2007 9:49 am

Re: Window transition event

Postby Antonio Linares » Fri Mar 15, 2024 3: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()

viewtopic.php?p=258349&sid=4b8316cfb706cfb5bfa9a662a4a7fb5e#p258349
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Window transition event

Postby Natter » Fri Mar 15, 2024 7:39 pm

Thank you, Antonio! I'll try.
Natter
 
Posts: 1222
Joined: Mon May 14, 2007 9:49 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 56 guests