Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ActiveX equivalent to LockScreen?
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00718086
Message ID:
00718161
Views:
21
>Is there an Active-X equivalent to the LockScreen property on a form?
>I am using DBI's ctMonth calendar and it takes time to fill it up.

Having an hWnd, you can use the LockWindowUpdate API call:
DECLARE INTEGER LockWindowUpdate IN WIN32API INTEGER hWndToLock
IF LockWindowUpdate(nMyActiveControlHWND) # 0
   *  The Lock succeeded
ELSE
   *  Some other Window is locked already; only one hWnd can be locked at a time
ENDIF
*
*  Do your Stuff
*
=LockWindowUpdate(0)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform