I am writing a paint program (like Paint Shop Pro, Windows Paint, etc.)
Say the user wants to draw freely on the canvas with the mouse. Currently I use an OnMouseMove event, and draw a line on the canvas between the current event and the previous OnMouseMove event.
While this works fine when the user is moving the mouse relatively slow, if the user happens to scribble really fast, the result is not what you would expect...it resembles what the user intended to draw, but it looks like a bunch of cheaply connected lines.
While experimenting with Paint Shop Pro, I look closely noticed that it uses the same method as I...but it seems that PSP seems to be a lot more sensitive...you can scribble really fast and the lines still look like curve.
I have come to the conclusion that, either
1. The OnMouseMove event is not generated often enough
2. The event is generated often enough, but my event handler is too slow
Is it faster to use Windows messages directly, than to use the OnMouseMove event? Or is there even some better way than that?