Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/09/2005, 22:21
nostromo_
 
Fecha de Ingreso: diciembre-2004
Ubicación: Iquique, Chile
Mensajes: 150
Antigüedad: 20 años, 3 meses
Puntos: 0
Pregunta Acceder Item en TreeView

Holas;

Tengo que acceder los item en un treeview, para escribir un mensaje en un edit:

Código:
        case WM_NOTIFY:
            HTREEITEM hItem;
            LPNM_TREEVIEW pntv = (LPNM_TREEVIEW)lParam; //<--- Línea 127
            if(pntv->hdr.code == TVN_SELCHANGED)
            {
                if(pntv->itemNew.lParam == 1) SetWindowText(hEstado,"Opción 1");
            }
            return 0;
Tengo los siguientes errores:

127 C:\instaladores_2\CC++\EjemplosDevC++\treview_1\tr eeview.cpp crosses initialization of `NMTREEVIEWA*pntv'

Nos vemos.