WM_SetRedraw

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • EvilProject
    New Member
    • Nov 2007
    • 16

    #1

    WM_SetRedraw

    Hi , i'm trying to diable window painting.I'm using the WM_SetRedraw message to do so. it does work the window stops painting itself but the problem is that stuff that are behind the window are being painted over it when i move the mouse over them. how can i fix this problem ?

    thanks in advance.

    sorry for my poor english
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Fix what?
    It is behaving as you requested. It is not re-painting itself.
    Which means anything painted over the top of it will not get erased (Since it does not repaint itself).

    HAve you considered overriding the Paint method?

    Comment

    • EvilProject
      New Member
      • Nov 2007
      • 16

      #3
      Originally posted by Plater
      Fix what?
      It is behaving as you requested. It is not re-painting itself.
      Which means anything painted over the top of it will not get erased (Since it does not repaint itself).

      HAve you considered overriding the Paint method?

      i did try to override the paint method,the problem is that scrollbars seem to repaint themselfs even when i disable the painting.

      basically what i want to do is to create some new controls and modify exisiting ones while the drawing is disabled and then draw them all in one shot.but i dont stuff over the top of the form to paint on it, and definatly not stuff that are behind the form. how can i do so ?

      Comment

      Working...