git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@67762
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxWebViewIE::Reload(wxWebViewReloadFlags flags)
{
void wxWebViewIE::Reload(wxWebViewReloadFlags flags)
{
+ VARIANTARG level;
+ VariantInit(&level);
+ V_VT(&level) = VT_I2;
- if (flags & wxWEB_VIEW_RELOAD_NO_CACHE)
- wxVariant level(REFRESH_COMPLETELY, "VT_I2");
- //level = 3;
- // VARIANTARG level;
- // VariantInit(&level);
- // V_VT(&level) = VT_I2;
- // V_I2(&level) = REFRESH_COMPLETELY;
- out = m_ie.CallMethod("Refresh2", &level);
- }
- else
- {
- out = m_ie.CallMethod("Refresh");
+ case wxWEB_VIEW_RELOAD_DEFAULT:
+ V_I2(&level) = REFRESH_NORMAL;
+ break;
+ case wxWEB_VIEW_RELOAD_NO_CACHE:
+ V_I2(&level) = REFRESH_COMPLETELY;
+ break;
+ default:
+ wxFAIL_MSG("Unexpected reload type");
- if (out.GetType() != "null")
- {
- wxMessageBox("Non-null return message : " + out.GetType());
- }
+ m_webBrowser->Refresh2(&level);
}
bool wxWebViewIE::IsOfflineMode()
}
bool wxWebViewIE::IsOfflineMode()