Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Window contents while dragging / resizing
Message
From
06/02/2014 04:24:17
 
 
To
06/02/2014 03:53:51
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01593391
Message ID:
01593397
Views:
37
<snip>

>>>>You know there is a setting in Windows display options called "Show window contents while dragging" - this shows the window's contents when you move or resize the window, dynamically resizing the contents if necessary. Is there a way to switch that off from VFP or, at least, tell my VFP app to ignore that setting. When this setting is off only the border of the window is moved or resized and once the operation is complete only then does the window contents refresh.


I have found a link which describes an API which you can call and use to adjust any Windows Control Panel settings called SystemParametersInfo(). Links here:

http://support.microsoft.com/kb/97142

and:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms724947%28v=vs.85%29.aspx#Icon

You can use this API to also switch on/off the "Show Window Contents While Dragging" setting which is constant:

SPI_SETDRAGFULLWINDOWS = 0x0025,

The function definition in C++ is:
BOOL WINAPI SystemParametersInfo(
  _In_     UINT uiAction,
  _In_     UINT uiParam,
  _Inout_  PVOID pvParam,
  _In_     UINT fWinIni
);
In Visual Basic it is:
Declare Function SystemParametersInfo Lib "User" (
ByVal uAction As Integer, 
ByVal uparam As Integer, 
lpvParam As Any, 
ByVal fuWinIni As Integer) As Integer
Anyone with knowledge on how to work this in VFP to switch off the window contents dragging feature?
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform