the simplest way is to add the following sentence in your web page:
The simplest way is to add the following sentence in your web page: <meta http-equiv="refresh" content="5;http_address>in http_address is the web page you want to show after 5 seconds.
一般来讲,可以给IE发一个WM_KEYDOWN消息加上VK_F5来让IE刷新页面,就像olo所做
的。但是这样做的前提是你必须知道你要刷新的是那一个IE窗口,当系统中存在多个
IE窗口时,你首先要做的是找到你要刷新的IE窗口,可以用FindWindow来找,但是用FindWindow要知道窗口的名称(Title),而IE的Title是随浏览的页面而变化的,如果
你能确定窗口的Title,那问题就简单了;你也可以用遍历窗口的方式来查找窗口,
不过比较麻烦。得到你要刷新的IE窗口句柄后,剩下来的就很简单了,向IE句柄发一
个WM_KEYDOWN消息,让键值为VK_F5,就可以让IE刷新了。
如果向大家推荐的那样,有一个问题无法解决.就是有可能在页面还没有完全调出来的时候就发出更新请求了.
顺便问一下,用VC怎么能遍历所有的窗口呢?请高手指点一下必要的类和函数.
<meta http-equiv="refresh" content="5;http_address>in http_address is the web page you want to show after 5 seconds.