Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/08/2005, 22:55
nostromo_
 
Fecha de Ingreso: diciembre-2004
Ubicación: Iquique, Chile
Mensajes: 150
Antigüedad: 19 años, 5 meses
Puntos: 0
Pregunta Quitar | dentro de un Control Edit

Holas;

Tengo un caudro de diálogo, el cual consta con 4 controles edit, en el fondo es tomar los valores de los edit y plasmarlo dentro de un edit, el cual es multilinea.

Utilizo el siguiente código:

Código:
case IDC_AGREGAR:
      GetWindowText(hEditNombre,strNombre,20);
      GetWindowText(hEditApellido,strApellido,20);
      GetWindowText(hCombo,strTextoCombo,20);
      if(strNombre != "" && strApellido != "" && strTextoCombo != "")
      {
          sprintf(informe,"INFORME CLIENTE\n\r%s\r%s\n\n%s",strNombre,strApellido,strTextoCombo);
          SetWindowText(hEditar,informe);
       }
        else
       {
           SetWindowText(hstatic1,"Completar Datos");
       }
       break;
El resultado es el siguiente:

INFORME CLIENTE| Alejo|prog||Holas

Los saltos de líneas o enter no funcionan en el edit.

El código del edit:

*.rc

Código:
CONTROL "", IDC_EDITAR, "Edit", ES_MULTILINE|ES_AUTOVSCROLL|ES_WANTRETURN|WS_TABSTOP, 144, 48, 104, 80, WS_EX_STATICEDGE
Que estoy haciendo mal????

Nos vemos