Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/08/2005, 00:19
Avatar de Eternal Idol
Eternal Idol
 
Fecha de Ingreso: mayo-2004
Ubicación: Lucentum
Mensajes: 6.192
Antigüedad: 20 años
Puntos: 74
Si esta inicializacion de hEstado esta dentro del switch ahi esta el problema:

Código:
static HWND hEstado = GetDlgItem(hwndDlg, IDC_ESTADO);
Podes hacerla fuera totalmente o declarla fuera y si se necesita inicializarla, algo asi como esto:

Código:
//fuera del switch
static HWND hEstado = 0;
switch(uMsg)
{
  case WM_MENUSELECT:
  {
    hEstado = GetDlgItem(hwndDlg, IDC_ESTADO);
    //RESTO DEL CODIGO
  }
  return 0;
  case WM_EXITMENULOOP:
  {
    hEstado = GetDlgItem(hwndDlg, IDC_ESTADO);
    //RESTO DEL CODIGO
  }
  return 0;
}
__________________
¡Peron cumple, Evita dignifica! VIVA PERON CARAJO