Forum Moderators: open
I am using MSHTML as an edit view in my application and I use IHTML interfaces to programmatically output text in that view.
For e.g. I use the following functions
IHTMLDocument2::createElement(...)
IHTMLElement::put_innerText(...)
Please observe the following pseudo code
for(i=0 to 100)
create <p> elements with some text
The problem is that the output view (MSHTML edit view) displays the 100 <p> elements only after the loop completes 100 times and not every time the element is created. This way the output view will be blank till the loop terminates. Is there a way to immediately let the browser display (in the output view) elements immediately after creation?
Thanks,
manju