如何将int转换为TVariant * (关于TCppWebBrowser::Refresh2函数使用)

steer1 2001-10-30 03:16:19
在用TCppWebBrowser::Refresh2函数的时候,遇到问题:

我想在用REFRESH_COMPLETELY来刷新页面,不知道如何使用

void __fastcall Refresh2(TVariant *Level=TNoParam());

Description

Call Refresh2 to reload the current document. Unlike the Refresh method, Refresh2 lets you specify what level of refresh to perform.

Level indicates what type of information is refreshed. The following table lists the possible values:

Constant Value Meaning

REFRESH_NORMAL 0 Perform a lightweight refresh that does not include the pragma:nocache header. The pragma:nocache header tells the server not to return a cached copy. This can cause problems with some servers.
REFRESH_IFEXPIRED 1 Only refresh if the page has expired. Do not include the pragma:nocache header.
REFRESH_CONTINUE 2 For internal use only.
REFRESH_COMPLETELY 3 Perform a full refresh, including the pragma:nocache header. Using this option is the same as calling the Refresh method.

When Level is omitted, a value of REFRESH_COMPLETELY is assumed.
...全文
129 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
我不懂电脑 2001-10-31
  • 打赏
  • 举报
回复
英文不看
steer1 2001-10-30
  • 打赏
  • 举报
回复
无人研究?
steer1 2001-10-30
  • 打赏
  • 举报
回复
我做了一个程序来刷新 Internet上某处的一个固定htm页面(假设为http://www.a.com/b.htm)

但当b.htm发生修改更新后,总是要点2次TCppWebBrowser::Refresh 才可以看到刷新页面
有什么办法可以点一次就强制刷新?
勿为 2001-10-30
  • 打赏
  • 举报
回复
在webplay.myrice.com上有TCppWebBrowser的例子。
csz_cmy 2001-10-30
  • 打赏
  • 举报
回复
TVariant XX=2;
Refresh2(XX);

13,825

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧