如何访问CHtmlView的历史记录列表? [英] how to access the history list of CHtmlView?

查看:105
本文介绍了如何访问CHtmlView的历史记录列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序中基于CHtmlView实现了IE浏览器,即后退"和转发"; functon总是可用的,但是我想让"back"成为可能.当当前页面指向历史记录列表的第一个位置时,该按钮将被禁用,并使其前进".当前页面指向历史记录列表的最后一个位置时,该按钮将被禁用.

我无法在历史记录列表中找到该方法,因此无法实现该功能,有人可以告诉我该怎么做吗?非常感谢!

[edit]删除了不必要的代码标签-nelek [/edit]

I''v implemented an IE browser in my application base on CHtmlView, the "back" and "forward" functon are always avaliable, but I want to make the "back" button disabled when the current page point to the first position of the history list, and make the "forward" button disabled when the current page point to the last position of the history list.

I can''t find the method to the history list, so that I can''t implemented the function, is there anyone can inform me how to do it? thanks very much!

[edit] unnecessary code tags removed - nelek [/edit]

推荐答案

CHtmlView包装IWebBrowser2接口-暴露 [
CHtmlView wraps the IWebBrowser2 interface - the docs for that[^] say you have to catch the CommandStateChange event callback, which is exposed[^] by that class


这篇关于如何访问CHtmlView的历史记录列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆