Save/Restore "state" of document in CHtmlView
-
Hi, In Internet Explorer, when I click on a link and go back to the previous site I am exactly at the same position of the document where I left. Even the link I clicked is still marked by a thin border. I have an application where I keep track on the history on my own. Now I need exactly the same behaviour. I think i need to save the "state" (scrollposition and "marked" link) in my history array and restore it afterwards when I load the old site again. Does anybody know how to achieve this? If this is hopeless it would also be enough to just save to current (scroll-)position. However, the loaded documents are complex with different divs which have overflow:auto, overflow:hidden etc. So I can't just get_body, query IHTMLTextContainer and afterwards get_scrollTop etc. because those would be the scroll stuff from the document itself... Thank you for any hints! :-)