So this would Extract the coordinates of where you let go of the mouse after you move it?
if(wParam & MK_LBUTTON)
{
int x=LOWORD(lParam);
int y=HIWORD(lParam);
you know I mean extracts the coordinates of where you let go of the line and then makes a line with the pen from the first coordinates to these?
after this case is excuted and you make another line again, does it goes back to this case ...case WM_LBUTTONDOWN:? To start making another line?Thank you for your help people.
If so I have another question is //return the dc to the system
ReleaseDC(hWndMain,hdc);
on the case WM_LBUTTONDOWN: released before moving on to this other case case WM_MOUSEMOVE: