WinCE 下使用IE打开网页的方法

来源:互联网 发布:软件无线电技术概念 编辑:程序博客网 时间:2024/06/02 04:50

WinCE 下使用IE打开网页的方法

代码如下:

SHELLEXECUTEINFO   ExecuteInfo;

ExecuteInfo.cbSize   =   sizeof(   ExecuteInfo   );

ExecuteInfo.fMask   =   SEE_MASK_NOCLOSEPROCESS   |   SEE_MASK_FLAG_NO_UI;  

ExecuteInfo.hwnd   =   NULL;

ExecuteInfo.lpVerb   =   NULL;   

ExecuteInfo.lpFile   =   _T(http://www.hao123.com);

ExecuteInfo.lpParameters   =   NULL;

ExecuteInfo.lpDirectory   =   NULL;

ExecuteInfo.nShow   =   SW_HIDE; 

BOOL   bResult   =   ShellExecuteEx(&ExecuteInfo); 

if(   !bResult   &&   (int)ExecuteInfo.hInstApp   <=   32   )

{    

         AfxMessageBox(_T("运行失败!!!"));    

        return _T("运行失败!!!");

 }  

原创粉丝点击