Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/12/2008, 16:15
Tik3r
 
Fecha de Ingreso: octubre-2008
Mensajes: 32
Antigüedad: 15 años, 7 meses
Puntos: 0
Respuesta: Mostrar resume ItemMenu

Nose si sera asi, pero yo tenia el mismo error y lei x ahi el poner los {} en los casos, y me funciono. El primer codigo kedaria asi:
Código:
static HWND hEstado = GetDlgItem(hwndDlg,IDC_ESTADO);

case WM_MENUSELECT:<---------------- Error
  {
   if (lParam == (LONG)GetMenu(hwndDlg))
  {
    if(LOWORD(wParam) == 0)
       SetWindowText(hEstado,"Menu 1");
    if(LOWORD(wParam) == 1)
       SetWindowText(hEstado,"Menu 2");
   }
   return 0;
    }
case WM_EXITMENULOOP:<---------------- Error
    {
   SetWindowText(hEstado,"");
   return 0;
    } 
Y hay ke cerrarlos antes del break :D

PD: Prueba haber si te va, ke yo stoy aprendiendo a programar y no es ke mi consejo sea fuy fiable xD