We help IT Professionals succeed at work.

LineTo Problema

talsp
talsp asked
on
Medium Priority
185 Views
Last Modified: 2013-11-19
i am drawing a graph using dc.LineTo(x, y);
anyway the Graph looks good but when i minimze my windows or another windows is covering mine the graph that was created is being deleted from the screen.
how can i solve this problem?
thanks.
Comment
Watch Question

Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
ok.
10x man.
btw: can i put in the OnDraw a call to a function that will make the draw stuff?

Commented:
just call LineTo(x,y) as you are already.  You simply need to keep your points in you class somewhere (an array perhaps) and draw them all from the OnDraw function (which is passed a CDC* pDC for you to draw on).

Check out the SCRIBBLE sample and tutorial that show how to do all this.

Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.