Results 1 to 6 of 6

Thread: Refresh / Redraw Windows Desktop

  1. #1
    danshap
    Guest

    Angry Refresh / Redraw Windows Desktop

    I've searched all over but cannot find code (THAT WORKS) to refresh the Windows desktop. I have found an API call (RedrawWindow) that supposedly redraws the Windows desktop if a NULL value is provided to it for the handle of the window to refresh, but it isn't working.

    Can anyone help me out on this?

    Thanks so much!!!!

    Dan

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    Code:
    Declare Function GetDesktopWindow Lib "user32" Alias "GetDesktopWindow" () As Long
    
    'maybe this (not sure though)
    UpdateWindow GetDesktopWindow
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  3. #3
    Matthew Gates
    Guest
    Take a look at this thread. (Search is working! )

  4. #4
    Junior Member
    Join Date
    Nov 2000
    Location
    Kalpetta,Wayanad,Kerala,india
    Posts
    25

    Wink refreshdesktop

    This is a program which can refresh desktop
    If you want the I may send you

  5. #5
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614

    Re: Refresh / Redraw Windows Desktop

    Please do not post .exe files to the forum.

    Thanks.

    Brad!
    Admin
    Have you given out your reputation points today? Select the Rate This Post link to give points for good posts!
    -------------------------------------------------------------
    Brad! Jones
    Lots of Software, LLC
    (I wrote: C Programming in One Hour a Day) (Dad Jokes Book) (Follow me on Twitter)

    --------------------------------------------------------------

  6. #6
    Frenzied Member
    Join Date
    Feb 2003
    Posts
    1,945

    Re: Refresh / Redraw Windows Desktop

    I have written a program dealing with the manipulation of another program's window in Vb6 and Vb.net. The code it contains might also achieve what you want to do with the desktop.

    Vb6 version:
    http://www.vbforums.com/showthread.p...on-the-desktop

    Vb.net version:
    http://www.vbforums.com/showthread.p...rogram-windows

    Another program I wrote deals with creating desktops and such, might also contain useful code:
    http://www.vbforums.com/showthread.p...reate-desktops

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