Add the WM_MOUSEMOVE Case

Add a WM_MOUSEMOVE case to process mouse-motion messages. Add the following statements to the window function:

case WM_MOUSEMOVE:

wsprintf(MouseText, “WM_MOUSEMOVE: %x, %d, %d”,

wParam, LOWORD(lParam), HIWORD(lParam));

InvalidateRect(hWnd, &rectMouse, TRUE);

break;