Re: Web Browser Control
Well, a container _must_ use STA after all. Did you expect it to
magically work after violating important aspects of your contract?
And sure nobody here could have helped you with that given the
details you had provided...
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://vcfaq.mvps.org
=====================================
"NickP" <a@a.com> wrote in message
news:%23qC08W3UIHA.2464@TK2MSFTNGP04.phx.gbl...
Aahaaa!
Problem fixed!
//HRESULT hRes = ::CoInitializeEx(NULL, COINIT_MULTITHREADED);
HRESULT hRes = ::CoInitialize(NULL);
ATLASSERT(SUCCEEDED(hRes));
In my application entry point I changed CoInitializeEx to CoInitialize and
now the browser appears where it should! Lucky for me this doesn't appear
to have effected anything else, but I'll have to keep my eye out. :)
Nick.
"NickP" <a@a.com> wrote in message
news:OnZmoIsUIHA.2000@TK2MSFTNGP05.phx.gbl...
Hi there,
I have a WTL app with a dialog that contains the MS Web browser
control in the center of it. The dialog is borderless and is being
placed as a child onto my main form.
The dialog appears where I expect it to, but the Web browser control
appears at the top left of the screen, as if it is not parented to the
dialog. I don't seem to be able to move it back, even after explicitly
setting it's parent to the dialog.
Any ideas what I could be doing wrong?
TIA.
Nick.