ClientToHostWindow does not work, does it ? ( C# )
From: Mike (Mike_at_discussions.microsoft.com)
Date: 06/16/04
- Next message: homecurr_at_yahoo.com: "Re: IHtmlElement, put_innerHtml, and postmessage"
- Previous message: Igor Tandetnik: "Re: IDocHostUIHandler::GetOptionKeyPath and AUTOCOMPLETE"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 16 Jun 2004 11:29:25 -0700
Hi! I have a form with embedded WebBrowser. The form has a status bar on the bottom and a toolbar at the top. Upon clicking on a link in the embedded webbrowser that calls JavaScript's window.open() call where I pass different width height, top.... parameters, I open a new form of the same type as the original.
I noticed that the webbrowser in the newly opened form is shifted to the right and bottom leaving gray areas on the left and top of the form.
I figured that I can adjust the layout etc in the ClientToHostWindow() event which seems to fire. Here's what I do in the event
e.cX = this.ClientSize.Width - 3;
e.cY = this.ClientSize.Height - this.statusBar.Height - this.toolBar.Height - 3 ;
The code above does not seem to position the webbrowser control correctly. I am doing the right thing? What am I doing wrong ? What else can I do?
Many Thanks in Advance,
--Mike
- Next message: homecurr_at_yahoo.com: "Re: IHtmlElement, put_innerHtml, and postmessage"
- Previous message: Igor Tandetnik: "Re: IDocHostUIHandler::GetOptionKeyPath and AUTOCOMPLETE"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|