Hi,
2 new functions have been announced in FW2210 - GetTopWindow( [hWnd] ) and GetForegroundWindow(). What is the difference between them, isn't Top Window and Foreground Window the same thing ?
Natter wrote:2 new functions have been announced in FW2210 - GetTopWindow( [hWnd] ) and GetForegroundWindow().
What is the difference between them, isn't Top Window and Foreground Window the same thing ?
ACTIVATE WINDOW oWnd ON INIT MakeTop( oWnd ) CENTER
PROCEDURE MakeTop( oObj )
SetWindowPos( oObj:hWnd, HWND_TOPMOST, ;
oObj:nTop, oObj:nLeft, ;
oObj:nWidth, oObj:nHeight )
RETURN
INIT PROCEDURE MainInit()
LOCAL cTitle := "phpBB Forum Grabber " + cVersion
LOCAL hWndDlg := FindWindowEx(,,, cTitle )
IF !( hWndDlg == 0 )
MsgInfo( "phpBB Forum Grabber " + cVersion + " is running ..." )
IF ISMINIMIZED( hWndDlg )
RESTORE( hWndDlg )
ENDIF
SetForegroundWindow( hWndDlg )
BringWindowToTop( hWndDlg )
ShowWindow( hWndDlg, 1 )
UpdateWindow( hWndDlg )
QUIT // It is a second instance. Bye Bye
ENDIF
RETURN
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 97 guests