|
-
Nov 28th, 2006, 12:11 PM
#1
Thread Starter
Addicted Member
Doubt about RedrawWindow function
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?
-
Nov 28th, 2006, 01:06 PM
#2
Hyperactive Member
Re: Doubt about RedrawWindow function
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..
-
Nov 28th, 2006, 01:23 PM
#3
Thread Starter
Addicted Member
Re: Doubt about RedrawWindow function
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.
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
|