You need to change your coordinates inside your even loop when you recienve mouse events:
{
static int start_x;
static int start_y;
int mx, my;
...
...
case WM_MOUSEMOVE:
mx = GET_X_LPARAM(lParam);
my = GET_Y_LPARAM(lParam);
break;
...
...
Eclipse(start_x, start_y,mx,my);
...
...
Regards,
Meredith Shaebanyan
|