|
-
February 25th, 2010, 10:02 AM
#1
Forcing windows to repaint.
Hey,
I have a few questions about repainting windows (in windows xp/+).
I would like to FULLY repaint a hidden window / (maybe even partially hidden windows) on command. Does a command exist for this? Windows you minimize for example don't get repainted. And making WM_PAINT trigger will only result in errors. Moving it offscreen will also not make it repaint.
Does anyone know a workaround this? If its even possible.
I know it sounds weird but I'm sure its the only way to make it work.
Thanks already.
e: Tricking Windows(OS) into thinking the window should be repainted should work too. (This should cause some weird behavior but that doesn't matter to me )
Last edited by edgebird; February 25th, 2010 at 10:05 AM.
-
February 25th, 2010, 12:54 PM
#2
Re: Forcing windows to repaint.
Setting the form's Paint event and using something like:
Code:
Graphics g = e.Graphics
is an option... otherwise you could call Invalidate()- this forces a repaint.
-
February 26th, 2010, 01:03 PM
#3
Re: Forcing windows to repaint.
 Originally Posted by edgebird
Hey,
I know it sounds weird but I'm sure its the only way to make it work.
I wouldn't be so sure. Why don't you tell us what you are actually attempting to accomplish?
-
February 27th, 2010, 03:26 AM
#4
Re: Forcing windows to repaint.
Moving it offscreen will also not make it repaint
How on earth did you verify that? Or have I missunderstood?
Rob
-
Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|