Results 1 to 2 of 2

Thread: Window Refresh

  1. #1
    assbeef
    Guest

    Arrow Window Refresh

    I need a command to Refresh all windows. For example, when you go into folder options and apply a change you can see all explorer-based windows "flicker" as they are refreshing the new settings. My program make changes to folder options through the registry, so I need a command to refresh any open windows take to effect on the new settings. HELP...

  2. #2
    Frenzied Member
    Join Date
    Aug 2001
    Posts
    1,075
    I use this code to refresh the Desktop and Explorer when I change an icon association.

    VB Code:
    1. Private Declare Sub SHChangeNotify Lib "shell32.dll" _
    2.            (ByVal wEventId As Long, _
    3.            ByVal uFlags As Long, _
    4.             dwItem1 As Any, _
    5.             dwItem2 As Any)
    6. Private Const SHCNE_ASSOCCHANGED = &H8000000
    7. Private Const SHCNF_IDLIST = &H0&
    8.  
    9. Public Sub RefreshSystemIcons()
    10.     SHChangeNotify SHCNE_ASSOCCHANGED, SHCNF_IDLIST, 0, 0
    11. End Sub

    Greg
    Free VB Add-In - The Reference Librarian
    Click Here for screen shot and download link.

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