Jump to content
Fivewin Brasil

Trazer a janela para frente


mkyx

Recommended Posts

Boa noite, pessoal,

Não achei aqui no forum, algo referente por isso resolvi perguntar:

Qual comando transferir a tela do nosso programa para frente quando na tela estiver aberto várias outras janelas, como google chrome, word, etc.

         BringWindowToTop( hWnd )
         ShowWindow(hWnd,3)
Esses comandos, só funcionam maximizando, quando a tela estiver minimizada, funciona top.

Mas, não trazem para frente, tipo BringWindowToFront, testei mas, não existe.

Desde já agradeço a todos. 

Link to comment
Share on other sites

Eu mudei de lugar, a rotina que verifica se o programa já está em execução na memória.

E por fim deu certo o que eu quero. Aqui no meu computador funcionou, não sei se nos clientes vai funcionar.

.

.

.
IF ISEXERUNNING("WINCOM.EXE")
   var_sys:="WinCom 4.00.69 - www.adentech.com.br - (12) 98854-8476"
   titj:="Empresário WinCom "+substr(var_sys,8,8)+" - Adentech Automação ::: "+fir_USER   
   
   IF GETACTIVEWINDOW()=0
      hWnd:=FindWindow(0,[titj] )
      IF hWnd # 0
         BringWindowToTop( hWnd )
         ShowWindow(hWnd,3)
         RETURN Nil
      ENDIF      
   ENDIF
ENDIF
.

.

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...