void CUrlWithLoginDlg::OnAdvanced() { if (FALSE == UpdateDNP ()) return; DLDS_LIST v; v.push_back (m_dld); CDownloadPropertiesSheet sheet (LS (L_ADVANCED), this); sheet.Init (&v, DPS_SHP_PROTOCOL|DPS_SHP_PROXY); _DlgMgr.OnDoModal (&sheet); sheet.DoModal (); _DlgMgr.OnEndDialog (&sheet); }
void CCreateBatchDownload::OnAdvanced() { DLDS_LIST v; v.push_back (m_dld); GetDlgItemText (IDC_URL, m_strUrl); fsURL url; if (url.Crack (m_strUrl) != IR_SUCCESS) { WrongUrl (); return; } m_dld->pMgr->GetDownloadMgr ()->GetDNP ()->enProtocol = fsSchemeToNP (url.GetInternetScheme ()); CDownloadPropertiesSheet sheet (LS (L_ADVANCED), this); sheet.Init (&v, DPS_SHP_NOGENERALNOMIRR); _DlgMgr.OnDoModal (&sheet); sheet.DoModal (); _DlgMgr.OnEndDialog (&sheet); }