#错误:声明不能包含标签
case WM_LBUTTONDOWN: {//鼠标左键按下
int xPos = LOWORD(lParam);
int yPos = HIWORD(lParam);
wsprintf(TEXT("x=%d,y=%d"),xPos,yPos);
MessageBox(hwnd, TEXT("菜单"), TEXT("鼠标左键按下"),MB_OK);
break;}
改进:加大括号