Results 1 to 3 of 3

Thread: Doubt about RedrawWindow function

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2006
    Posts
    160

    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?

  2. #2
    Hyperactive Member
    Join Date
    Aug 2006
    Posts
    367

    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..

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2006
    Posts
    160

    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
  •  



Click Here to Expand Forum to Full Width