Thread View: borland.public.cppbuilder.internet.web
1 messages
1 total messages
Started by Sally
Thu, 29 Jun 2006 07:30
TWebBrowser stealing focus and scrolling back up upon changes
Author: Sally
Date: Thu, 29 Jun 2006 07:30
Date: Thu, 29 Jun 2006 07:30
20 lines
1715 bytes
1715 bytes
I have a TWebBrowser control, Borland C++ 6, and everytime I change the
page data (particularly a few numbers on the page), it scrolls all the
way up AND the form that the TWebBrowser control is in also jumps in
front of other windows (steals focus). Any thoughts how to solve this,
example code would be greatly appreciated. Here is the code I'm using:
IDispatch* doc = Document;
if(!doc) { gotoEmptyPage(); doc = Document; }
IHTMLDocument2* theDoc = NULL; doc->QueryInterface(IID_IHTMLDocument2,
(void**) &theDoc);
doc->Release();
const int arrayBounds[] = {0, 0};
Variant v = VarArrayCreate(arrayBounds, 1, varVariant);
v.PutElement(dataCString, 0);
theDoc->write((SAFEARRAY*) v.VArray);
theDoc->close();
theDoc->Release();
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads