Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetDesktopWindow(), VFP7, Win XP????
Message
 
 
À
10/02/2003 22:44:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00751754
Message ID:
00752189
Vues:
23
Matt,

Why would you want to lock the desktop window anyway? You really only want to lock the VFP window. In VFP7 you could use the _vfp.hWnd property. In earlier versions you can use a function from foxtools to get the hwnd of the VFP window.

>This classic trick below doesn't seem to work on our new computers running Win XP Pro. I t worked fine on Win NT 4.
>
>Am I missing something?
>
>Of course, I want to hide the "Printing page x..." window that pops up. I found this code on UT a long time ago, and it was working fine. It does'nt give any errors, it just does not hide the window like it used to.
>
>
>
>DECLARE INTEGER GetDesktopWindow IN WIN32API
>DECLARE INTEGER LockWindowUpdate IN WIN32API INTEGER lnHandle
>
>hWin = GetDeskTopWindow()
>LockWindowUpdate(hWin)
>
>*report form ...*
>
>LockWindowUpdate(0)
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform