"Show window contents while dragging" keeps getting disabled

5,302

Solution 1

In my case it was the Citrix Receiver that disabled the setting, every time I launch a published application.

I have yet to find a way to disable this behaviour. Instead, I've created a tiny C++ console application that re-enables the setting. This runs via a scheduled task every 5 minutes.

The entire source code, which can be compiled using VS Studio Community Edition:

#include <windows.h>
#include <tchar.h>

int _tWinMain(HINSTANCE hInstance,
    HINSTANCE hPrevInstance,
    LPTSTR    lpCmdLine,
    int       cmdShow)
{
    BOOL enabled;

    SystemParametersInfo(SPI_GETDRAGFULLWINDOWS,
        NULL, &enabled, 0);

    //printf("Current 'dragfullwindow' option status: %d\n", enabled);

    if (!enabled)
    {
        SystemParametersInfo(SPI_SETDRAGFULLWINDOWS,
            TRUE,
            NULL,
            SPIF_UPDATEINIFILE | SPIF_SENDCHANGE);
    }
    return 0;
}

Solution 2

There is a simple and effective solution to this problem. In Notepad, type the following lines:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Control Panel\Desktop] "DragFullWindows"="1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Control Panel\Desktop] "DragFullWindows"="1"

Save the file as "Show Window Contents.reg." Double-clicking this file and restarting will fix the problem permanently. Post a message if you find this useful.

Share:
5,302

Related videos on Youtube

abstrask
Author by

abstrask

Signed up December 2011 and #SOreadytohelp

Updated on September 18, 2022

Comments

  • abstrask
    abstrask almost 2 years

    On my Windows 7 Enterprise x64 machine at work, "Show window contents while dragging" regularly gets disabled.

    I currently have Visual Effects set to "Adjust for best appearance", still, every now and then, I only drag window borders around - not content.

    Visual Effects: Adjust for best appearance

    (click images to enlarge)

    When I experience this, the "Show window contents while dragging" checkbox is still checked. Unchecking the box, applying settings, checking the box and applying settings restores the functionality.

    I previously used "Custom" as opposed to "Adjust for best appearance". When I experienced the issue back then, "Show window contents while dragging" would be unchecked. I could check it, apply settings and "a while" later, the issue would return.

    I am not aware of anything settings in logon scripts or GPO's that would cause this. Also logging off and back on, or even rebooting the computer, doesn't reproduce the problem (at least not consistently).

    I rarely log out or reboot, but I often connect via RDP from home. I've tried connecting to my session from a Windows XP machine, both with "Show window contents while dragging" disabled and enabled in the RDP client. In either case, "Show window contents while dragging" was enabled and working when logging in locally - as expected.

    For what it's worth, my computer is fitted with an nVidia NVS 4200M and Intel HD 3000 graphics cards.

    Have anyone encountered this or similar problem? Any ideas what could be causing this or how to determine?

    Thanks!

    • SeanC
      SeanC almost 11 years
      is it a Dell? (seems most work computers are) Dell Media Experience does this change. 101-computer-troubleshooting.blogspot.com/2009/09/…
    • abstrask
      abstrask almost 11 years
      It IS a Dell, however there's no "Media Experience" installed. At least not listed in "Programs and Features". This is a manual install by the way, and I only installed essential software and drivers.