bada开发——Web控件的使用及获取用户点击的链接地址
2010-10-21 10:40
597 查看
Web控件的使用及获取用户点击的链接地址
需要实现接口类public Osp::Web::Controls::ILoadingListener
__pWeb = new Web();
r = __pWeb->Construct(Rectangle(x, y, w, h));
TryCatch(r == E_SUCCESS, ,"Web is not constructed/n ");
r = __pMainForm->AddControl(*__pWeb);
TryCatch(r == E_SUCCESS, ,"Web is not attached/n ");
__pWeb->SetLoadingListener(this);
__pWeb->SetFocus();
__pWeb->LoadUrl(L"http://***");
在函数bool BrowserForm::OnLoadingRequested (const Osp::Base::String &url, WebNavigationType type)中就可以获取到所有访问的url,同时在函数DecisionPolicy BrowserForm::OnWebDataReceived (const Osp::Base::String &mime, const Osp::Net::Http::HttpHeader&httpHeader)中必须返回 WEB_DECISION_CONTINUE。
函数void BrowserForm::OnEstimatedProgress(int progress)可以获取到当前页面打开的百分比
需要实现接口类public Osp::Web::Controls::ILoadingListener
__pWeb = new Web();
r = __pWeb->Construct(Rectangle(x, y, w, h));
TryCatch(r == E_SUCCESS, ,"Web is not constructed/n ");
r = __pMainForm->AddControl(*__pWeb);
TryCatch(r == E_SUCCESS, ,"Web is not attached/n ");
__pWeb->SetLoadingListener(this);
__pWeb->SetFocus();
__pWeb->LoadUrl(L"http://***");
在函数bool BrowserForm::OnLoadingRequested (const Osp::Base::String &url, WebNavigationType type)中就可以获取到所有访问的url,同时在函数DecisionPolicy BrowserForm::OnWebDataReceived (const Osp::Base::String &mime, const Osp::Net::Http::HttpHeader&httpHeader)中必须返回 WEB_DECISION_CONTINUE。
函数void BrowserForm::OnEstimatedProgress(int progress)可以获取到当前页面打开的百分比
相关文章推荐
- 利用Microsoft Web Browser控件模拟用户填写关键词,点击按钮,点加链接等
- 开发和使用Web用户控件
- 开发和使用Web用户控件(转)
- 开发和使用Web用户控件
- android开发(30) 使用WebView,点击网页中的链接建立QQ 临时会话 WPA
- 开发和使用Web用户控件
- 开发和使用Web用户控件
- 开发和使用Web用户控件
- android开发(30) 使用WebView,点击网页中的链接建立QQ 临时会话 WPA
- Android开发之如何在WebView中点击链接使用自身打开(解决出现的选择使用第三方应用的问题)
- 开发和使用Web用户控件
- 开发和使用Web用户控件
- 开发和使用Web用户控件
- 开发和使用Web用户控件
- 开发和使用Web用户控件
- 开发和使用Web用户控件
- 基于MVC4+EasyUI的Web开发框架形成之旅--界面控件的使用
- 【问题记录】Asp.net WebApplication和WebSite中用户控件的使用区别
- 使用nginx后如何在web应用中获取用户ip及原理解释GOOD
- Asp.net在WebApplication和WebSite中用户控件的使用区别