Refreshing the Win95 Enviroment

Is there a command from VB5 that'll refresh the Win95 Enviroment including the taskbar, the desktop, etc.?
LVL 1
ChrisHAsked:
Who is Participating?
 
shchukaConnect With a Mentor Commented:
Ok, here's what I would do.  (I didn't test this code.)

REM in declaration section
Declare Function GetDesktopWindow& Lib "user32" Alias "GetDesktopWindow" ()
Declare Function UpdateWindow& Lib "user32" (ByVal hwnd&)

REM where you need the stuff to be done
dim desktop as long
dim dummy as long

destkop = GetDesktopWindow()
dummy = UpdateWindow(desktop)

Good luck
0
 
shchukaCommented:
Not directly in VB, but you can do that using API calls.

Use GetDesktopWindow call to get the handle of the desktop window and then
there's another api (I'm not sure the name) to make the window to repaint itself.
0
 
ChrisHAuthor Commented:
How do I do that?  How do I find out the name of the other API call?
0
 
ChrisHAuthor Commented:
Yea.. I just figured it and tested it AS I heard the Outlook new mail beep.  Pretty funny.. thanks for the help..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.