Draw on a CButton
I am going to make an application where I recieve x and y coordinates from an activex control. I recieve new data 3-4 times each second. Now I want to plot these coordinates and draw a line between consecutive coordinates.
First I thougt that I could derive a CButton and do the drawing in the onDrawItem function. Since I need the last coordinate in the centre of the drawing I need to redraw for every new coordinate. This means that my application becomes pretty slow when the amount of coordinates increases over a certain number.
I also need to be able to make a zoom (both + and -) on the CButton. How can I achieve this?
And regarding effiency will there be a lot to save by not drawing on the CButton but on some other things? How about OpenGL, will that do this kind of work a lot better?
Looking forward for you gurus inputs!
Thx

