sorry that was me forgot to log on
Ok..... Sir, you seem a bit new to this whole thing. Therefore, I suggest you aquire the win API refrence that contains the syntax and explanation of all functions and variables in windows programming. btw, you should not attempt to write a game unless you can create a fairly functional application. It is not possible for you to not even understand proper mouse handling and write a game. Same goes with the dc. You MUST be able to do such things. It must be so.
As you move the mouse Windows sends the mouse has moved msg. These msg's are placed in a que waiting to be sent to your app and processed.
Depending on the speed of your PC, and the speed that you move the mouse, you may see the line not 'keeping up' with the cursor. Each msg will contain a new point to draw TO.
From MSDN help
"If LineTo succeeds, the current position is set to the specified ending point. "
So the last point is the next starting point creating a series of short straight lines.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill