• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 178
  • Last Modified:

LineTo Problema

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.
0
talsp
Asked:
talsp
  • 2
1 Solution
 
RONSLOWCommented:
Ensure that you do your drawing in the OnDraw for your view.

0
 
talspAuthor Commented:
ok.
10x man.
btw: can i put in the OnDraw a call to a function that will make the draw stuff?
0
 
RONSLOWCommented:
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.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now