sorry that was me forgot to log on :D
Printable View
sorry that was me forgot to log on :D
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.