Design question for having multiple windows

  • Thread starter Thread starter Sean
  • Start date Start date
S

Sean

Hi all,

I have a design question here.
I have window A and in window A, if user clicks a button,
windows B will appear. Window B has to do a lot of
redrawing and movement (Location changes).

What is the best approach to implement this? so that even
when I move/drag window A around, window B can redraw
itself nicely without the jerking/blury effect on the
graphics.

Thank you very much in advance.



regards,
Sean
 
I haven't had to do this with a .NET form so I dunno API offhand but...

There is a window creation flag on a raw WIN32 window that controls whether
or not the window contents is buffered. If the window contents IS buffered
then you can move the window around all that you want and it won't constantly
be repainting itself; it will only repaint if contents changes or if the
window is obscurred/minimized and then made visible again...

--Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top