Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Webbrowser control
Message
From
06/02/2004 13:41:06
Mike Sue-Ping
Cambridge, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00874802
Message ID:
00874932
Views:
10
Hi Brian,

I tried your suggestion about placing the Webbrowser ActiveX control inside a VFP8 container object. By strategically setting it's left, top, width and height I can effectively make it look "flat".

My problem now is that when I resize the form, I have code to resize the container control (Webbrowser ActiveX control) too. This works ok except for the fact that sometimes the Webbrowser ActiveX control will not size correctly. It would sometimes be too small in width and height and not occupy the entire parent container.

I've tried to screenlock the form during resizing but it didn't help. I have _vfp.AutoYield = .F.

Do you have any ideas as to what may be causing this behavior?

Mike


>>>Mike,
>>>
>>>There you go reading and believing product documentation. *LOL*
>>>
>>>None of their screen shots show it that way, although it probably can do it. It might be possible that it is a window attribute that can be tweaked with an API call from VFP once you get the HWND of the webbrowser. You'd need to go digging through the docs on MSDN. This is probably the best place to start http://msdn.microsoft.com/library/en-us/vcmfc98/html/_mfc_cwnd.asp?frame=true. Our friend George Tasker might know this one off the top of his head.
>>
>>df,
>>
>>You'd use SetWindowLong() to set the style. However, I have no idea what value to pass since I'm not sure what's meant by "3-D".
>
>You might consider the easy approach. Simple put the control in another container that has not border and then position to control the exclude the inset border.
Previous
Reply
Map
View

Click here to load this message in the networking platform