如何将int转换为TVariant * (关于TCppWebBrowser::Refresh2函数使用)
在用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.