Dear Enrico,
I've found this your code in this group.
Is it possible to set focus too?
This code show window but focus is not activated in program MyWin.
Is it possible?
Bye
Marco
I've found this your code in this group.
Is it possible to set focus too?
This code show window but focus is not activated in program MyWin.
Is it possible?
Bye
Marco
#include "Fivewin.ch"
FUNCTION MOSTRA()
  LOCAL cTitle := "MyWin"
  SHOWWINDOW( FINDWND( cTitle ), 9 )
  SETFOREGROUNDWINDOW( FINDWND( cTitle ) )
  RETURN NIL
#define GW_HWNDFIRST 0
#define GW_HWNDLAST Â 1
#define GW_HWNDNEXT Â 2
#define GW_HWNDPREV Â 3
#define GW_OWNER Â Â 4
#define GW_CHILD Â Â 5
FUNCTION FINDWND( cTitle )
  LOCAL hWnd := GETWINDOW( GETDESKTOPWINDOW(), GW_CHILD )
  WHILE hWnd != 0
    IF UPPER( cTitle ) $ UPPER( GETWINDOWTEXT( hWnd ) )
      RETURN hWnd
    ENDIF
    hWnd = GETWINDOW( hWnd, GW_HWNDNEXT )
  ENDDO
  RETURN NILMarco Boschi
info@marcoboschi.it
info@marcoboschi.it