Win32/MFC messages question - Paging skinjob or any other windows programmers

Discussion in 'OT Technology' started by Joe_Cool, Feb 6, 2006.

  1. Joe_Cool

    Joe_Cool Never trust a woman or a government. Moderator

    Joined:
    Jun 30, 2003
    Messages:
    299,278
    Likes Received:
    555
    Window A is obscured by window B. Then window B is moved, minimized, whatever, so that window A is no longer obscured, but it now is plain white where window B was covering it.

    What message do I need to handle to require a repaint when the window is uncovered?
     
  2. Joe_Cool

    Joe_Cool Never trust a woman or a government. Moderator

    Joined:
    Jun 30, 2003
    Messages:
    299,278
    Likes Received:
    555
    Nevermind. I guess OnPaint gets called when a window gets uncovered. I found my problem - I have an if(var) around my paint instructions to slow down my animation, and naturally var doesn't get set to true when the OS sends a WM_PAINT.

    :hs:

    I'll either have to do a major rewrite on my program, or else just live with the delayed repaint.
     
  3. Joe_Cool

    Joe_Cool Never trust a woman or a government. Moderator

    Joined:
    Jun 30, 2003
    Messages:
    299,278
    Likes Received:
    555
    Just for kicks, here's the finished prog:

    http://s13.yousendit.com/d.aspx?id=36RKAUJ8MXL7Y33ZNFVGKJ6ETR

    I set it up to change colors, show the system time, run at different speeds, :mb:. All that crap that teachers want you to do. Plus it resizes with the window, and you can click and drag to set the time by moving the hour hand.
     

Share This Page