It appears the WebBrowser control (or associated support code that goes along with it) does not acknowledge ResizeRules.
Reproducible method I tried...
- Create a blank resizable form (WS_THICKFRAME)
- Place WebBrowser control on it
- Configure the WebBrowser control Custom settings (i.e. set a URL or seed with some HTML code)
- Set the ResizeRules of the WebBrowser control to FL, FT, FR, FB
- Compile and Run
You can resize the parent form but the WebBrowser control does not change it's size.
How about resizing it manually in the form's resize event?
Rolf
hmmm.... I'll have to look at this one. Could be that other controls may not be triggered by the resize engine (I'm think OCX controls maybe, and 3rd party external controls).
Adding a MoveWindow for the WebBrowser control to the WM_SIZE of the parent does indeed work. This was more informational to Tech Support.
I just wasn't sure if it was something that needed "fixing" or something that just needed better documentation.
@ROLF
How sad is it that people (well at least me) don't read well. I speed read your posting then wondered why you wrote "Rolling on floor laughing" after it. I need to slow down a bit :-) Thanks for the info though, greatly appreciated.
I guess I need to be carefull signing with my name!
Rolf (not rofl)
Was there any resolution to this?
or do I have to do it manually?
Thanks
Jon
You will have to do it at run time. The bug is still listed in my bugtracker.