VC++一个函数内的一段程序看不懂
从问号注释后面的都看不懂了!求助!void CDlgSCManage::OnDocumentCompleteExplorer1(LPDISPATCH pDisp, VARIANT FAR* URL)
{
if(m_lSCType == 1 || m_lSCType == 2 || m_lSCType==3) return;
if(m_lSCType == 0)
{
long lIndex;
lIndex = m_ListCtrl.GetNextItem(-1, LVNI_SELECTED);
if(lIndex<0) return;
long SCID = m_ListCtrl.GetItemData(lIndex);
CPublicClass ppcc;
CString strDispName;
long ldp;
CString strFile =ppcc.GetScFileName(m_lSCType,SCID,strDispName,ldp);
if(ldp==1)
return;
}
CComQIPtr <IWebBrowser2>piWB(pDisp); //????
CComPtr <IDispatch>pdispDoc;
if(!piWB)
return;
piWB->get_Document(&pdispDoc);
if(!pdispDoc)
return;
CComQIPtr <IHTMLDocument2>piDoc(pdispDoc);
CComPtr <IHTMLElement>piElem;
CComPtr <IHTMLBodyElement>piBody;
if(!piDoc)
return ;
piDoc->get_body(&piElem);
if(!piElem)
return;
piElem->QueryInterface(&piBody);
if(!piBody)
return ;
piBody->put_scroll(CComBSTR(_T("no")));
IHTMLStyle *pStyle;
piElem->get_style(&pStyle);
pStyle->put_border(CComBSTR(_T("none")));
}