I am in the process of developing a program that will draw a basic line. this line is moved with in coming data from the serial.
all works fine, but i get a flicker when the line is drawn. i have tried several solutions to solve this.
1 - Double buffer - on
this slows it down alot, and still doesnt work correctly.
2 - WM_ERASEBKGND - Still no joy.
3 - Manual Double buffering.
This method involved drawing the image onto a Paintbox/ image, then once all drawn copy the image to another paintbox. this works fine, until you then hide the buff image. the result is that the main image, doesnt refresh.
Any help on this would be greatly appreciated.
Jim
all works fine, but i get a flicker when the line is drawn. i have tried several solutions to solve this.
1 - Double buffer - on
this slows it down alot, and still doesnt work correctly.
2 - WM_ERASEBKGND - Still no joy.
3 - Manual Double buffering.
This method involved drawing the image onto a Paintbox/ image, then once all drawn copy the image to another paintbox. this works fine, until you then hide the buff image. the result is that the main image, doesnt refresh.
Any help on this would be greatly appreciated.
Jim