Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you would have posted the code to change that setting, I would have tested it against the following suggestions before replying.</p> <p>Have you tried:</p> <p>1) Removing the statement <code>if (itemName == "Windows Explorer")</code> from the above code, so it refreshes every window (including the desktop)?</p> <p>2) Broadcasting a WM_SETTINGCHANGE via SendMessage WIN32 API?</p> <pre><code>private const int HWND_BROADCAST = 0xffff; private const int WM_WININICHANGE = 0x001a, WM_SETTINGCHANGE = 0x001a, INI_INTL = 1; [DllImport("user32.dll")] private static extern int SendMessage(int hWnd, uint wMsg, uint wParam, uint lParam); SendMessage(HWND_BROADCAST, WM_SETTINGCHANGE, 0, INI_INTL); </code></pre> <p><a href="https://stackoverflow.com/a/1052715/2529063">[Credit]</a></p> <p>3) IActiveDesktop.ApplyChanges</p> <pre><code>[ComImport] [Guid("F490EB00-1240-11D1-9888-006097DEACF9")] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface IActiveDesktop { [PreserveSig] int ApplyChanges(AD_Apply dwFlags); // [...] // Note: There is a lot more to this interface, // please see PInvoke.net link below. } private const int AD_APPLY_REFRESH = 4; IActiveDesktop.ApplyChanges(AD_APPLY_REFRESH); </code></pre> <p><a href="http://www.pinvoke.net/default.aspx/Interfaces/IActiveDesktop.html" rel="nofollow noreferrer">[PInvoke.net - IActiveDesktop]</a></p> <p>If these do not work, let me know. If it comes down to it, it is possible to save all the open explorer windows &amp; their positions, terminate explorer, wait for explorer to restart, re-open each explorer window and re-position them... if that would acceptable.</p> <p>Hope this helps.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload