Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetDesktopWindow(), VFP7, Win XP????
Message
 
 
To
10/02/2003 22:44:52
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00751754
Message ID:
00752189
Views:
17
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
Previous
Reply
Map
View

Click here to load this message in the networking platform