![]() |
|
#1
|
|||
|
|||
MFC - drawing overlapping circlesIn my program I take appropriate values from the user and then click a button to draw a circle on the same dialog box. However if I change the values and then again click the button to draw, my previous circle is erased and the new one is drawn. What I want is for the previous circles to stay there and not be erased every time a new circle is drawn. I guess it has something to do with how I use Invalidate() statement but Im not sure how to achieve this.
|
|
#2
|
|||
|
|||
Re: MFC - drawing overlapping circlesHi There,
The Problem is When You call Invalidate(); It refreshes the screen so there is only on basestation left on the screen for which you call the function.To show them all make a static counter in base station class and in paint function do this: for(int i=0;i<=BaseStattionCount;i++) { obj.Ellipse (); //for every base station call the function } Hope it will work. |
Recent GIDBlog
Toyota - 2008 July Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Drawing order | Z_guy | FLTK Forum | 6 | 09-Sep-2007 12:57 |
| Free Hand Drawing in FLTK | nimeesh | FLTK Forum | 2 | 31-Aug-2007 02:58 |
| How to save a drawing to the file | amgturk | MS Visual C++ / MFC Forum | 2 | 25-Jul-2005 00:29 |
| Undo Drawing | Nelly | MS Visual C++ / MFC Forum | 3 | 10-May-2004 21:14 |
| Back to the drawing board... | spudtheimpaler | C Programming Language | 9 | 15-Mar-2004 10:12 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The