Results 1 to 4 of 4

Thread: Repaint screen?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,091

    Repaint screen?

    After painting to the screen's dc, how do I tell the screen dc to repaint itself so that what ever I drew will disappear?

    I tried the following, but it doesn't work:

    SendMessage HWND_BROADCAST, WM_PAINT, 0, 0

    Any help would be appreciated..

    Dan

    Visual Studio 2010

  2. #2
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    this API should do it
    Public Declare Function RedrawWindow Lib "user32" Alias "RedrawWindow" (ByVal hwnd As Long, lprcUpdate As RECT, ByVal hrgnUpdate As Long, ByVal fuRedraw As Long) As Long
    Sanity is a full time job

    Puh das war harter Stoff!

  3. #3
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    well I did this before and it worked perfectly.
    I programmed a screenmate 2 years back.
    Sanity is a full time job

    Puh das war harter Stoff!

  4. #4
    Addicted Member Janus's Avatar
    Join Date
    Aug 2001
    Location
    California
    Posts
    221
    try InvalidateRect, that might work too.
    "1 4m 4 1337 #4xz0r!'
    Janus

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