问题是 在下网页的时候 怎样尽量避免对图片的下载 或者有什么好的方法
在就是应该从那方面入手呢?  请不吝赐教

解决方案 »

  1.   

    过虑调这个吧<IMG src="xxx">
      

  2.   

    see WebBrowser Control Overviews and Tutorials in MSDN
      

  3.   

    See the sample below, FYI: http://www.codeproject.com/shell/dlgdhtmlevents.asp
      

  4.   

    看看这个,对你会有帮助的。
    利用Java编写HTML文件分析程序
    http://202.120.223.182/kejian/classroom/java/J2SE/46.html
      

  5.   

    我在试着用 wininet 获取代码 然后自己编函数来查
      

  6.   

    override CWnd::OnAmbientProperty
    Download Control
    Hosts can control certain aspects of downloading—frames, images, Java, and so on—by implementing both IOleClientSite and an ambient property defined as DISPID_AMBIENT_DLCONTROL. When the host's IDispatch::Invoke method is called with dispidMember set to DISPID_AMBIENT_DLCONTROL, it should place zero or a combination of the following values in pvarResult.DLCTL_DLIMAGES The browsing component will download images from the server. 
      

  7.   

    //这是我编的一个下在整个网站所有网页的程序
    //这样不可能将图片一起下载的
    CInternetSession session;
    CHttpFile *file;
    CString str;
    UpdateData(TRUE);
    if(m_ifrom>m_ito) AfxMessageBox("输入顺序不对"); 
    //http://www.versiontracker.com/mp/devinfoapp.m?ID=10000&OS_Filter=Windows
    for(int i=10000;i<10001;i++)
    {
    char bufa[20];
    itoa(i,bufa,10);
    // AfxMessageBox(bufa);
    m_strURL="http://www.versiontracker.com/mp/devinfoapp.m?ID=";
    CString szurl=m_strURL+bufa;
    CString temp2="&OS_Filter=Windows";
    szurl=szurl+temp2;
    strcat(bufa,".html");
    CFile fileout;
    CString str="C:\\dwonloadhtml\\";
    str=str+bufa;
    // AfxMessageBox(str);
    fileout.Open(str,CFile::modeCreate|CFile::modeWrite,NULL);
    file=(CHttpFile *)session.OpenURL(szurl);
    char buf[1025];
    memset(buf,0x00,1025);
    if(file==NULL)
    AfxMessageBox("connect failed");
    CString strs;
    strs.Empty();
    while(file->ReadString(strs))
    {
    int len=strs.GetLength();
    fileout.Write(strs,len); }
    fileout.Close();
    file->Close();

    }
    session.Close();