Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LockScreen and ActiveX Controls
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00451758
Message ID:
00451767
Views:
25
>Hi, all,
>
>The lockscreen property of the forms class appears to have no effect on ActiveX controls on the form. I have tried setting LockWindowUpdate in User32.dll, also to no effect.
>
>Does anyone know how to accomplish the effect of lockscreen with an ActiveX control?
>
>Thanks.

James,

It's true that LockScreen has no effect on ActiveX controls. This is because they're separate windows and Windows can only lock screen updates on one window at a time. Some ActiveX controls, such as the Treeview, have an hWnd property that can be used with LockWindowUpdate. With others, you have to use FindWindowEx() to locate the proper window handle. FWIW, I wrote an article in the VFUG newsletter (this past June I think) on doing refreshes with the TreeView control. You might want to take a look at that.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform