Keep the 'Line'
I have written a program that implements the VK_UP, DOWN, RIGHT, LEFT keys and also it works with MoveToEx and LineTo functions. Well, I got the 'Line' to move all around the screen, but now I have another question:
When the line moves to the next spot (determined by the key pressed), I want to keep the previous line there so it almost looks as though it is a drawing tool. How would I do this? Thanks.
Keep a memory of a certain number of previous point coordinates with which to draw your line as it is being moved. You could use queues for a fixed number or something along the lines of a linked list or vector if you wanted to dynamically change the number of points stored.
I was thinking more along the lines of a memory hdc or something. You know when you write to a hdc, well I just want to keep the line written to the device context. Thanks.