Hi all !
Can I handle the event of the window moving my tasks into the background ?
Hi all !
Can I handle the event of the window moving my tasks into the background ?
Your FWH app will receive the events and process them even if it is in background
I wanted to move my application on a second plan was carried out some actions
Could you provide a small example to test here ? thanks
DEFINE WINDOW oWnd //main window
DEFINE TIMER oTm OF oWnd INTERVAL 15000 ACTION Chk_Grnd()
oTm:Activate()
procedure Chk_Grnd
if oWnd is background (I don't know how to define it)
.............
else
.............
endif
return
if GetForegroundWindow() != oWnd:hWnd
...
#pragma BEGINDUMP
#include <windows.h>
#include <hbapi.h>
HB_FUNC( GETFOREGROUNDWINDOW )
{
hb_retnll( GetForegroundWindow() );
}
#pragma ENDDUMPThank, Mr. Antonio. It's work fine !