case WM_LBUTTONDOWN:
x=LOWORD(lParam);
y=HIWORD(lParam);
break;
HDC dc;
POINT point;//应该放在switch前面
....
case WM_LBUTTONDOWN:
dc=GetDC(hwnd);
GetCursorPos(&point); //鼠标位置
dc.TextOut(...);
ReleaseDC(hwnd,dc);
case WM_LBUTTONDOWN:
mouse_x=LOWORD(lParam);
mouse_y=HIWORD(lParam);
sprintf(str,"%d,%d",mouse_x,mouse_y);//显示坐标
TextOut(cdc,20,20,str,strlen(str));
break;
POINT point;
GetCursorPos(&point); //鼠标位置
cout<<(<