Sous Windows: Très facile à faire si tu sais mettre ca dans un HBITMAP.
Dans WM_MOUSEMOVE, tu as juste a faire:
hdc = GetDC(hwnd);
SetPixel(hdc, x, y, oldColor);
x = LOWORD(lParam);
y = HIWORD(lParam);
oldColor = GetPixel(hdc, x, y);
SetPixel(x, y, 0);
ReleaseDC(hwnd, hdc);
break;
|