Solved

LineTo Problema

Posted on 1998-06-02
3
163 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 30 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now