I'd like to refresh just a portion of a window or frame, not the whole thing. For example, if I'd like to redraw a rectangle of 100x100 that is at .Left = 100, .Top = 600, how could I do it?
Printable View
I'd like to refresh just a portion of a window or frame, not the whole thing. For example, if I'd like to redraw a rectangle of 100x100 that is at .Left = 100, .Top = 600, how could I do it?
Look into the PaintRgn() API function.. You will need to subclass the Paint event to override it with what you want unless you just need to update it like that only when you call your function leaving the default paint event unchanged..
http://www.geocities.com/SiliconVall...7/api/apic.htm
This should be a decent starting point example..
I only need to refresh a portion of the window, not overriding it with anything. The reason of this is that I have a form that is left "dirty" after messing with some things, but if I refresh the whole form some other part of it is cleaned as well when it shouldn't. As far as I know this should be possible defining a RECT in the lprcUpdate parameter of the RedrawWindow function, but I don't know which parameter(s) to use in fuRedraw in this situation or if I should do anything else.