Dear All,
I cannot find this topic, it might off topic.
I want to activate the minimized program from system tray. It means "Allow to run program once only".
Regards,
Dutch
if IsExeRunning( 'dispan.exe' ).or.IsExeRunning( 'Dispan.exe' ).or.IsExeRunning( 'DISPAN.exe' ).or.IsExeRunning('DISPAN.EXE' )
if pppp()==1
msgstop('Program is already running.','Ups...')
endif
return .f.
endif
#PRAGMA BEGINDUMP
#include "Windows.h"
#include "ClipApi.h"
HB_FUNC( PPPP )
{
HWND hWnd;
if (hWnd=FindWindow(NULL,"Clinical examination""))
{
ShowWindow(hWnd,SW_RESTORE);
SetForegroundWindow(hWnd);
_retni(0);
}
_retni(1);
}
#PRAGMA ENDDUMP
SetForeGroundWindow(oWnd)
***************************************************************************************************
*** SetForeGroundWindow( hWnd ) to Bring the Minimised window to ForeGround ***
*** When the user try to execute it again ***
***************************************************************************************************
DLL32 FUNCTION SetForeGroundWindow( hWnd AS LONG ) AS BOOL;
PASCAL FROM "SetForegroundWindow" LIB "user32.dll"
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 93 guests