Ver Mensaje Individual
  #10 (permalink)  
Antiguo 24/05/2005, 10:21
MaxExtreme
 
Fecha de Ingreso: abril-2005
Mensajes: 3.083
Antigüedad: 19 años, 1 mes
Puntos: 17
Cita:
Iniciado por David el Grande
los "Edit" no tienen Caption
¡¡Toda ventana tiene Caption!!

Sea de la clase que sea... _No_ es tu control de VB llamado EditBox, sino el control estándar Edit. Es una _ventana_ de Windows (ventanas ), y por tanto, lo tiene.

El problema de usar GetWindowText no es ése, sino:
"This function cannot retrieve the text of an edit control in another application."

Además, también dice:
"To retrieve the text of a control in another process, send a WM_GETTEXT message directly instead of calling GetWindowText."

Por lo tanto, para obtener el contenido usaremos SendMessage.