Solved

LineTo Problema

Posted on 1998-06-02
3
167 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

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

Suggested Solutions

Title # Comments Views Activity
iSeries DB2 Query 2 98
lucky13 challenge 11 159
haveThree challenge 22 123
matchUp  challenge 9 126
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…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

730 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