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