Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Window contents while dragging / resizing
Message
De
06/02/2014 05:09:54
 
 
À
06/02/2014 04:24:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01593391
Message ID:
01593399
Vues:
35
><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?

Hi Jos,

Would the LOCKSCREEN property help?

HTH,

Ken
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform