[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

LineTo Problema

Posted on 1998-06-02
3
Medium Priority
?
172 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.
0
Comment
Question by:talsp
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
RONSLOW earned 120 total points
ID: 1315933
Ensure that you do your drawing in the OnDraw for your view.

0
 

Author Comment

by:talsp
ID: 1315934
ok.
10x man.
btw: can i put in the OnDraw a call to a function that will make the draw stuff?
0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 1315935
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses
Course of the Month20 days, 7 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question