How can I force CHtmlView to load local webpage? It seems to me that it
will load the page only after the program is on idle. (When it does no
calculation, and it is not in Sleep.)
This is not good for me, because I would need to update the page
instantly, and right after that do some calculations that might take a
second or so. (The update can't wait that long, and they must be done in
this order.)
Currently I have solved this by using timer and checking when the page
has loaded and committed the heavy calculation after if has. But this
really is a crappy way to do it IMHO, because I have a lot of other
things to do with timer also and this really mixes up the program logic.
I don't know if it matters, but the dialog where I'm showing the
htmlview is a modaless child dialog (I'm showing two dialogs at the same
time.)
I have tried UpdateWindow()( for both the main- and the child dialog )
and many other solutions also. And I tried also searching newsgroups and
the Internet for hours. No luck.