Re: howto avoid cdc drawing done not in onPaint to be erased?




Dave
--
David Webber
Author of 'Mozart the Music Processor'http://www.mozart.co.uk
For discussion/support seehttp://www.mozart.co.uk/mzusers/mailinglist.htm

Thanks Dave ,

I'll try to explain.
The reason i need all of this to perform outside the WM_PAINT message
is because the control is updated each 20ms with new object to
draw. the static control main goal is to display a tracking data , so
i recive x.y coordinates each 20ms , and on those coordinates
i need to draw something.
Storing those x,y in a string or an array and then caling WM_PAINT
(via invalidate) , and there to draw them, seems to me quite
expensive / wasteful , especially that the data can flow to the system
for along time.

In othere word what you are saying is, that if we are using the mouse
to free draw on a control ' we need to save each and every point the
mouse x,y position was.

What i need , basically is a way , when the disaplay need to be
"refresh\repaing" , to save the DC , and then restore it on WM_PAINT.

Thank you/


.



Relevant Pages

  • Re: Ignored advice, am now in serious poo on graphics
    ... Then I put in a thread.sleep, after the draw in the Paint method, and noticed a strange thing - the image was shown for 1000 milliseconds, then disappears. ... If you're doing your own drawing, there's nothing in a PictureBox control that is useful to you. ... It would take a lot more than a single newsgroup post to address all of the complexities of graphics under Windows. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Help Drawing into a Dialog
    ... you should NEVER "draw into" a dialog. ... the map only calling the CDialog::OnInitDialogroutine. ... You MIGHT consider doing it in the OnPaint handler, but I think this whole design is ... // return TRUE unless you set the focus to a control ...
    (microsoft.public.vc.mfc)
  • Re: PrintLines without border in last record
    ... Add a logic check before the current code is called to draw any lines. ... I sent in your email the example with problem in report. ... Stephen Lebans escreveu: ... Dim CtlDetail As Control ...
    (comp.databases.ms-access)
  • Re: User Controls (Active X) - Da Process
    ... When you hit the Finish button, the wizard will fill the code module ... you still have to write the code that gives your control its functionality.... ... lets say all you wanted to expose was a BackColor ... Let's say you want to give your control a Draw ...
    (microsoft.public.vb.general.discussion)
  • Re: Is it possible to draw lines between two froms?
    ... When you set a Form to IsMdiContainer = true you also create an MdiClient control which is added to the form. ... This control is the gray background you see. ... The code below will draw a line between the upper left corner of the MdiParent and an MdiChild ... If Form1 and Form2 both reside inside a parent form have the ...
    (microsoft.public.dotnet.languages.csharp)

Loading