BOOL CUrlWithLoginDlg::OnInitDialog() { CDialog::OnInitDialog(); ZeroMemory (&m_dnp, sizeof (m_dnp)); if (m_strUrl.GetLength () == 0) { LPCSTR pszUrl = _ClipbrdMgr.Text (); if (pszUrl && *pszUrl) { fsURL url; if (url.Crack (pszUrl) == IR_SUCCESS && *url.GetHostName ()) m_strUrl = pszUrl; } if (m_strUrl.GetLength () == 0) m_strUrl = "http://"; } ASSERT (m_dld->pMgr->GetDownloadMgr () != NULL); if (IR_SUCCESS != m_dld->pMgr->GetDownloadMgr ()->CreateByUrl (m_strUrl, TRUE)) m_dld->pMgr->GetDownloadMgr ()->CreateByUrl ("http://", TRUE); SetDlgItemText (IDC_URL, m_strUrl); ((CEdit*) GetDlgItem (IDC_URL))->SetSel (0, -1); GetDlgItem (IDC_URL)->SetFocus (); ApplyLanguage (); UpdateEnabled (); return FALSE; }
BOOL CWaitForConfirmationDlg::OnInitDialog() { CDialog::OnInitDialog(); SetDlgItemText (IDC__MESSAGE, m_msg); ((CStatic*) GetDlgItem (IDC_DLGICON))->SetIcon (::LoadIcon (NULL, m_pszIcon)); fsSetForegroundWindow (m_hWnd); ::SetWindowPos (m_hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE); ApplyLanguage (); if (m_strDontAskAgainText.GetLength () != 0) SetDlgItemText (IDC_DONTASK, m_strDontAskAgainText); if (m_wait != UINT_MAX) { SetTimer (1, 1000, NULL); SetTimerText (); } GetDlgItem (IDC_DONTASK)->ShowWindow (m_bShowDontAsk ? SW_SHOW : SW_HIDE); m_bDontAsk = FALSE; return TRUE; }
BOOL CDlgDeletedProperties::OnInitDialog() { CDialog::OnInitDialog(); m_wndMaxValSpin.SetRange (1, UD_MAXVAL); CheckDlgButton (IDC_DONTUSE, _App.Deleted_Bypass () ? BST_CHECKED : BST_UNCHECKED); UINT max = _App.Deleted_MaxCount (); if (max != UINT_MAX) { CheckDlgButton (IDC_USEMAX, BST_CHECKED); SetDlgItemInt (IDC_MAXVAL, int (max)); } else SetDlgItemInt (IDC_MAXVAL, 100); CheckDlgButton (IDC_BYPASSCOMPLETED, _App.Deleted_BypassCompleted () ? BST_CHECKED : BST_UNCHECKED); CheckDlgButton (IDC_CONFIRMDELETION, _App.Deleted_ConfirmDeletion () ? BST_CHECKED : BST_UNCHECKED); ApplyLanguage (); UpdateEnabled (); return TRUE; }
BOOL CDlg_Options_Downloads_TimeLimit::OnInitDialog() { CDlg_Options_Page::OnInitDialog(); FillTimes (&m_wndFrom); FillTimes (&m_wndTo); DWORD dw = _DldsMgr.m_dwPDTimeLimit; if (dw) { CheckDlgButton (IDC_SETLIMIT, BST_CHECKED); m_wndFrom.SetCurSel (LOWORD (dw)); m_wndTo.SetCurSel (HIWORD (dw)); } else { m_wndFrom.SetCurSel (0); m_wndTo.SetCurSel (0); } UpdateEnabled (); ApplyLanguage (); return TRUE; }
BOOL CDlg_Download::OnInitDialog() { CDialog::OnInitDialog(); m_wndProgress.Create (this); CRect rc; GetDlgItem (IDC__PROGRESS)->GetWindowRect (&rc); ScreenToClient (&rc); m_wndProgress.MoveWindow (&rc); m_wndProgress.m_dld = m_dld; LOGFONT lf; GetFont ()->GetLogFont (&lf); lf.lfWeight = FW_BOLD; m_fntBold.CreateFontIndirect (&lf); if (m_dld->pMgr->IsBittorrent ()) SetDlgItemText (IDC__URL_, LS (L_NAME)); ApplyLanguage (); SetTimer (1, 1000, NULL); CheckDlgButton (IDC_AUTOCLOSE, _App.DownloadDialog_AutoClose () ? BST_CHECKED : BST_UNCHECKED); CheckDlgButton (IDC_AUTOLAUNCH, m_dld->pMgr->IsLaunchWhenDone () ? BST_CHECKED : BST_UNCHECKED); NeedUpdate (); SetTimer (2, 300, NULL); return TRUE; }
BOOL CDlgSounds::OnInitDialog() { CDialog::OnInitDialog(); CRect rc; m_wndSnds.GetClientRect (&rc); m_wndSnds.InsertColumn (0, LS (L_EVENT), LVCFMT_LEFT, rc.right / 2); m_wndSnds.InsertColumn (1, LS (L_SOUND), LVCFMT_LEFT, rc.right / 2 - 1); m_wndSnds.InsertItem (0, LS (L_DOWNLOADADDED)); m_wndSnds.SetItemText (0, 1, SndFile (_App.Snd_DownloadAdded ())); m_wndSnds.InsertItem (1, LS (L_DOWNLOADCOMPLETE)); m_wndSnds.SetItemText (1, 1, SndFile (_App.Snd_DownloadComplete ())); m_wndSnds.InsertItem (2, LS (L_DOWNLOADFAILED)); m_wndSnds.SetItemText (2, 1, SndFile (_App.Snd_DownloadFailed ())); m_wndSnds.InsertItem (3, LS (L_DIALINGSUCCEDED)); m_wndSnds.SetItemText (3, 1, SndFile (_App.Snd_DialingOK ())); m_wndSnds.InsertItem (4, LS (L_DIALINGFAILED)); m_wndSnds.SetItemText (4, 1, SndFile (_App.Snd_DialingFailed ())); m_wndSnds.InsertItem (5, LS (L_NOACTIVEDOWNLOADS)); m_wndSnds.SetItemText (5, 1, SndFile (_App.Snd_NoActiveDownloads ())); ApplyLanguage (); UpdateEnabled (); return TRUE; }
BOOL CPrg_Data::OnInitDialog() { CPropertyPage::OnInitDialog(); CSpinButtonCtrl *pSpin = (CSpinButtonCtrl*) GetDlgItem (IDC_AUTOSAVESPIN); pSpin->SetRange (1, UD_MAXVAL); SetDlgItemInt (IDC_AUTOSAVE, _App.AutosaveInterval () / 60 / 1000, FALSE); ApplyLanguage (); CString str = _App.DataFolder (); if (str.IsEmpty ()) { CheckDlgButton (IDC_KEEP_1, BST_CHECKED); } else { CheckDlgButton (IDC_KEEP_2, BST_CHECKED); SetDlgItemText (IDC_FOLDER, str); } UpdateEnabled (); return TRUE; }
BOOL CPrg_GeneralPage_FWDlg::OnInitDialog() { CDialog::OnInitDialog(); m_wndBlend1.SetRange (0, 255); m_wndBlend2.SetRange (0, 255); m_blend1 = m_DropBoxTrancparency; m_blend2 = m_InfoWndTrancparency; m_wndBlend1.SetPos (255 - m_DropBoxTrancparency); m_wndBlend2.SetPos (255 - m_InfoWndTrancparency); UpdateBlendsVals (); CheckDlgButton (IDC_DROPBOX, m_bDropBox ? BST_CHECKED : BST_UNCHECKED); CheckDlgButton (IDC_DLINFO, m_bInfoWnd ? BST_CHECKED : BST_UNCHECKED); CheckDlgButton (IDC_HIDEFWWFS, m_bHideInFs ? BST_CHECKED : BST_UNCHECKED); ApplyLanguage (); UpdateEnabled (); return TRUE; }
BOOL CAERDlg::OnInitDialog() { CDialog::OnInitDialog(); ((CStatic*) GetDlgItem (IDC_DLGICON))->SetIcon (LoadIcon (NULL, IDI_QUESTION)); CString str; str.Format (LS (L_FILEEXISTSWHATTODO), m_pszFile); SetDlgItemText (IDC__MESSAGE, str); if (m_bDSR) { GetDlgItem (IDC_STOP)->EnableWindow (FALSE); GetDlgItem (IDC_RESUME)->EnableWindow (FALSE); } GetDlgItem (IDC_RENAME)->SetFocus (); ApplyLanguage (); mfcSetTopmostWindow (this); return FALSE; }
BOOL CDlg_CheckFileIntegrity_Result::OnInitDialog() { CDialog::OnInitDialog(); HICON hIco = m_bResultOK ? SICOEX (IDI_TEST_OK, 32, 32) : LoadIcon (NULL, IDI_ERROR); m_wndIcon.SetIcon (hIco); if (m_bResultOK == false) GetDlgItem (IDC_NEVERSHOWTHISIFTESTOK)->EnableWindow (FALSE); else GetDlgItem (IDC_RESTARTDOWNLOAD)->ShowWindow (SW_HIDE); CString str = "URL: "; str += m_strUrl; str += "\r\n"; str += LS (L_FILENAME); str += ": "; str += m_strFileName; str += "\r\n"; if (m_bResultOK == false) { str += LS (L_VALIDCHECKSUM); str += ": "; str += m_strValidHash; str += "\r\n"; str += LS (L_RESULTCHECKSUM); str += ": "; str += m_strResultHash; } SetDlgItemText (IDC_FILEINFO, str); ApplyLanguage (); return TRUE; }
BOOL CPrg_GeneralPage::OnInitDialog() { CPropertyPage::OnInitDialog(); CMainFrame *pFrame = (CMainFrame*) AfxGetApp ()->m_pMainWnd; CheckDlgButton (IDC_AUTOSTART, _AutorunMgr.IsAutoStart () ? BST_CHECKED : BST_UNCHECKED); CheckDlgButton (IDC_STARTMINIMIZED, _App.Prg_StartMinimized () ? BST_CHECKED : BST_UNCHECKED); CheckDlgButton (IDC_MINTOTRAY, pFrame->m_bMinToTray ? BST_CHECKED : BST_UNCHECKED); CheckDlgButton (IDC_CLOSEASMINIMIZE, pFrame->m_bCloseAsMinimize ? BST_CHECKED : BST_UNCHECKED); CheckDlgButton (IDC_MODIFYIEUSERAGENT, _App.ModifyIEUserAgent () ? BST_CHECKED : BST_UNCHECKED); m_dlgFW.m_bDropBox = _App.View_FloatingWindow (); m_dlgFW.m_bInfoWnd = _App.View_FloatingInfoWindow (); m_dlgFW.m_bHideInFs = _App.FloatingWndsHideInFSMode (); m_dlgFW.m_DropBoxTrancparency = _App.DropBoxWndBlend (); m_dlgFW.m_InfoWndTrancparency = _App.DownloadsInfoWndBlend (); m_bAutostartChanged = FALSE; ApplyLanguage (); return TRUE; }
BOOL CPrg_HistoryPage::OnInitDialog() { CPropertyPage::OnInitDialog(); CheckDlgButton (IDC_USEHIST, _App.History_Use () ? BST_CHECKED : BST_UNCHECKED); CheckDlgButton (IDC_FOLDERSONLY, _App.History_FoldersOnly () ? BST_CHECKED : BST_UNCHECKED); m_wndSpin1.SetRange (1, 99); m_wndSpin2.SetRange (1, 99); if (_App.History_KeepDays () != INT_MAX) { CheckDlgButton (IDC_DELRECTHATEXISTS, BST_CHECKED); SetDlgItemInt (IDC_DAYS, _App.History_KeepDays ()); } else SetDlgItemInt (IDC_DAYS, 15); if (_App.History_MaxRecords () != INT_MAX) { CheckDlgButton (IDC_MAXNUMBER, BST_CHECKED); SetDlgItemInt (IDC_MAXNUMBERVAL, _App.History_MaxRecords ()); } else SetDlgItemInt (IDC_MAXNUMBERVAL, 30); ApplyLanguage (); UpdateEnabled (); return TRUE; }
BOOL CDownloadProperties_MirrorsPage::OnInitDialog() { CPropertyPage::OnInitDialog(); RECT rc; m_wndMirrs.GetClientRect (&rc); m_wndMirrs.InsertColumn (0, LS (L_MIRRURLS), LVCFMT_LEFT, rc.right - 50-90 - GetSystemMetrics (SM_CXVSCROLL) - 1); m_wndMirrs.InsertColumn (1, LS (L_SERVSPEED), LVCFMT_LEFT, 90); m_wndMirrs.InsertColumn (2, LS (L_ISUSED), LVCFMT_LEFT, 50); m_wndMirrs.SetExtendedStyle (LVS_EX_FULLROWSELECT | LVS_EX_INFOTIP); fsInternetDownloader* dldr = m_dld->pMgr->GetDownloadMgr ()->GetDownloader (); FillMirrsList (); UpdateMirrSpeed (); UpdateMirrUsing (); if (dldr->GetMirrorURLCount () == 0) GetDlgItem (IDC_CALCMIRRSPEED)->EnableWindow (FALSE); if (dldr->IsMirrSearchPerformed ()) GetDlgItem (IDC_FINDMIRRORS)->EnableWindow (FALSE); ApplyLanguage (); UpdateEnabled (); return TRUE; }
BOOL CSchedule_HTSPage::OnInitDialog() { CPropertyPage::OnInitDialog(); UINT nChecked = IDC_ONEVENT; switch (m_task->hts.enType) { case HTS_ONCE: nChecked = IDC_ONCE; break; case HTS_DAILY: nChecked = IDC_DAILY; break; case HTS_CONTINUOUSLY: nChecked = IDC_ONEVERY; break; } CheckRadioButton (IDC_ONCE, IDC_ONEVENT, nChecked); m_wndTime.SetFormat ("HH:mm"); m_wndEveryDim.AddString (LS (L_B_MINUTES)); m_wndEveryDim.AddString (LS (L_B_HOURS)); m_wndEveryDim.AddString (LS (L_B_DAYS)); m_wndEveryDim.SetCurSel (0); m_wndEvent.AddString (LS (L_ATSTARTUP)); m_wndEvent.AddString (LS (L_AFTERDIALOK)); m_wndEvent.AddString (LS (L_DIALWASFAILED)); m_wndEvent.AddString (LS (L_WHENNOACTIVEDLDS)); m_wndEvent.AddString (LS (L_WHENSPEEDSMALL)); m_wndEvent.AddString (LS (L_WHENALLDLDSINERRSTATE)); m_wndEvent.AddString (LS (L_WHENDONE_2)); m_wndEvent.SetCurSel (0); ((CSpinButtonCtrl*) GetDlgItem (IDC_EVERYSPIN))->SetRange (1, UD_MAXVAL); ((CSpinButtonCtrl*) GetDlgItem (IDC_DURINGSPIN))->SetRange (1, UD_MAXVAL); SetDlgItemInt (IDC_DURING, 10); SetDlgItemInt (IDC_LOWSPEED, 100); SetDlgItemInt (IDC_EVERY, 1); DataToDialog (); UpdateEnabled (); GetDlgItem (IDC_ONCE)->SetFocus (); m_bNeedRecalcStartTime = FALSE; ApplyLanguage (); return FALSE; }
BOOL CEnterKeyDlg::OnInitDialog() { CDialog::OnInitDialog(); ApplyLanguage (); return TRUE; }
BOOL CDlg_SavePassword::OnInitDialog() { CDialog::OnInitDialog(); ApplyLanguage (); return TRUE; }
BOOL CDlg_CheckFileIntegrity::OnInitDialog() { CDialog::OnInitDialog(); LPCSTR ppszAlgs [] = { "MD5", "SHA-1", "SHA-2 256", "SHA-2 384", "SHA-2 512", "CRC 32" }; UINT ppnAlgs [] = { HA_MD5, HA_SHA1, HA_SHA2, HA_SHA2 + 1000 + HSHA2S_384, HA_SHA2 + 1000 + HSHA2S_512, HA_CRC32, }; CString strLastAlg = _App.Hash_LastAlgorithm (); for (int i = 0; i < sizeof (ppszAlgs) / sizeof (LPCSTR); i++) { m_wndAlgorithm.AddString (ppszAlgs [i]); m_wndAlgorithm.SetItemData (i, ppnAlgs [i]); if (strLastAlg.CompareNoCase (ppszAlgs [i]) == 0) m_wndAlgorithm.SetCurSel (i); } if (CB_ERR == m_wndAlgorithm.GetCurSel ()) m_wndAlgorithm.SetCurSel (0); ApplyLanguage (); if (m_strChecksum.IsEmpty () == FALSE) { SetDlgItemText (IDC_CHECKSUM, m_strChecksum); UINT nAlg = m_nAlgorithm; if (nAlg == HA_SHA2 && m_nSHA2Strength != 0) nAlg += 1000 + m_nSHA2Strength; for (int i = 0; i < m_wndAlgorithm.GetCount (); i++) { if (m_wndAlgorithm.GetItemData (i) == nAlg) { m_wndAlgorithm.SetCurSel (i); break; } } } else { PasteChecksum (true); } ((CEdit*)GetDlgItem (IDC_CHECKSUM))->SetSel (MAKELPARAM (-1, 0)); return TRUE; }
BOOL CCreateDownloadFromTorrentFileDlg::OnInitDialog() { CDialog::OnInitDialog(); ASSERT (m_ptszTorrentFile); if (m_ptszTorrentFile) SetDlgItemText (IDC_TORRENTFILE, m_ptszTorrentFile); m_btnChooseFolder.SetIcon (SICO (IDI_CHOOSEFOLDER)); m_btnCreateGroup.SetIcon (SICO (IDI_CREATEGROUP)); m_btnSetTime.SetIcon (SICO (IDI_SETTIME)); m_btnSetDefaultFolder.SetIcon (SICO (IDI_SETFOLDERDEFAULT)); m_schScheduleParam.schTask.hts.enType = HTS_ONCE; m_schScheduleParam.schTask.hts.last.dwHighDateTime = m_schScheduleParam.schTask.hts.last.dwLowDateTime = UINT_MAX; m_schScheduleParam.schTask.dwFlags = SCHEDULE_ENABLED; SYSTEMTIME time; GetLocalTime (&time); if (++time.wHour > 23) time.wHour = 0; time.wMinute = 0; SystemTimeToFileTime (&time, &m_schScheduleParam.schTask.hts.next); m_schScheduleParam.schTask.uWaitForConfirmation = 0; m_wndGroups.Fill (); CComboBox *pDirs = (CComboBox*) GetDlgItem (IDC_OUTFOLDER); for (int i = 0; i < _LastFolders.GetRecordCount (); i++) pDirs->AddString (_LastFolders.GetRecord (i)); CheckRadioButton (IDC_STARTNOW, IDC_STARTSCHEDULE, IDC_STARTNOW); ASSERT (m_dld->pGroup != NULL); m_wndGroups.SelectGroup (m_dld->pGroup); pDirs->SetWindowText (m_wndGroups.GetSelectedGroup ()->strOutFolder); UINT nAS = _App.Last_Autostart (); if (nAS == 0) nAS = IDC_STARTNOW; else nAS = nAS == 1 ? IDC_STARTMANUAL : IDC_STARTSCHEDULE; CheckRadioButton (IDC_STARTNOW, IDC_STARTSCHEDULE, nAS); SetDlgItemText (IDC_COMMENT, m_dld->strComment); ApplyLanguage (); UpdateEnabled (); mfcSetForegroundWindow (this); return TRUE; }
BOOL CTorrentMoveErrorDlg::OnInitDialog() { CDialog::OnInitDialog(); ((CStatic*) GetDlgItem (IDC_DLGICON))->SetIcon (LoadIcon (NULL, IDI_QUESTION)); ApplyLanguage (); return TRUE; }
BOOL CDlgExtensionsFilter::OnInitDialog() { CDialog::OnInitDialog(); SetDlgItemText (IDC_EXTS, m_strExts); CheckRadioButton (IDC_REMOVE, IDC_LEAVE, m_bRemove ? IDC_REMOVE : IDC_LEAVE); ApplyLanguage (); return TRUE; }
BOOL CHFE_ProtocolPage::OnInitDialog() { CPropertyPage::OnInitDialog(); CheckDlgButton (IDC_RETREIVEADDINFO, _App.RetreiveInfoWhileGettingList ()); CheckDlgButton (IDC_PASSIVEMODE, _App.HFE_FtpPassiveMode ()); ApplyLanguage (); return TRUE; }
BOOL CSites_AdvancedPage::OnInitDialog() { CPropertyPage::OnInitDialog(); m_bDialogWasInited = TRUE; ToDialog (); m_bUserChangedProtocols = FALSE; ApplyLanguage (); return TRUE; }
BOOL CSites_GeneralPage::OnInitDialog() { CPropertyPage::OnInitDialog(); m_btnCreateGroup.SetIcon (SICO (IDI_CREATEGROUP)); for (int i = 0; i < _LastUrlPaths.GetRecordCount (); i++) m_wndSite.AddString (_LastUrlPaths.GetRecord (i)); m_wndGroups.Fill (); m_wndMaxConnsSpin.SetRange (1, UD_MAXVAL); if (m_pSite->strName != NULL) SetDlgItemText (IDC_SITE, m_pSite->strName); if (m_pSite->strUser) { CheckDlgButton (IDC_USELOGIN, BST_CHECKED); SetDlgItemText (IDC_USER, m_pSite->strUser); if (m_pSite->strPassword) SetDlgItemText (IDC_PASSWORD, m_pSite->strPassword); } if (m_pSite->cMaxConns != UINT_MAX) { CheckDlgButton (IDC_USEMAXCONNS, BST_CHECKED); SetDlgItemInt (IDC_MAXCONNS, m_pSite->cMaxConns); } else SetDlgItemInt (IDC_MAXCONNS, 1); if (m_pSite->pGroup == NULL) { m_wndGroups.SelectGroupById (_App.CreateDld_IdOfLastGrpSelected ()); } else { CheckDlgButton (IDC_USEDEFGROUP, BST_CHECKED); m_wndGroups.SelectGroup (m_pSite->pGroup); } CheckDlgButton (IDC_USEFTPPASSIVE, m_pSite->dwFtpFlags & FTP_USEPASSIVEMODE ? BST_CHECKED : BST_UNCHECKED); CheckDlgButton (IDC_DONTSENDLIST2, m_pSite->dwFtpFlags & FTP_DONTSENDLIST ? BST_CHECKED : BST_UNCHECKED); UpdateEnabled (); ApplyLanguage (); return TRUE; }
BOOL CDlgConnectionSpeedInfo::OnInitDialog() { CDialog::OnInitDialog(); UpdateStats (); SetTimer (1, 1000, NULL); ApplyLanguage (); UpdateEnabled (); return TRUE; }
BOOL CDlg_Options_Downloads_Flv::OnInitDialog() { CDlg_Options_Page::OnInitDialog(); DWORD dw = _App.FlvMonitoring_ProcessList (); m_dwOldFSDI = dw; if (dw & FSDI_PROCESS_IE) CheckDlgButton (IDC_M_IE, BST_CHECKED); if (dw & FSDI_PROCESS_FIREFOX) CheckDlgButton (IDC_M_FIREFOX, BST_CHECKED); if (dw & FSDI_PROCESS_OPERA) CheckDlgButton (IDC_M_OPERA, BST_CHECKED); if (dw & FSDI_PROCESS_NETSCAPE) CheckDlgButton (IDC_M_NETSCAPE, BST_CHECKED); if (dw & FSDI_PROCESS_SAFARI) CheckDlgButton (IDC_M_SAFARI, BST_CHECKED); if (dw & FSDI_PROCESS_CHROME) CheckDlgButton (IDC_M_CHROME, BST_CHECKED); if (dw & FSDI_PROCESS_SEAMONKEY) CheckDlgButton (IDC_M_SEAMONKEY, BST_CHECKED); if (_App.FlvMonitoring_Enable ()) CheckDlgButton (IDC_ENABLE_MONITORING, BST_CHECKED); else m_dwOldFSDI = 0; m_dwInitialFSDI = m_dwOldFSDI; DWORD bShowBtn = _App.FlvMonitoring_ShowDownloadItButton (); if (bShowBtn) { CRegKey key; if (ERROR_SUCCESS == key.Open (HKEY_CURRENT_USER, _T ("Software\\Microsoft\\Internet Explorer\\LowRegistry\\Software\\FreeDownloadManager.ORG\\Free Download Manager\\Settings\\FlvMonitoring"), KEY_READ)) { key.QueryValue (bShowBtn, _T ("ShowDownloadItBtn")); if (!bShowBtn) _App.FlvMonitoring_ShowDownloadItButton (FALSE); } } if (bShowBtn) CheckDlgButton (IDC_SHOWGETITBTN, BST_CHECKED); UpdateEnabled (); ApplyLanguage (); return TRUE; }
BOOL CDlgExportHistory::OnInitDialog() { CDialog::OnInitDialog(); CheckRadioButton (IDC_ALL, IDC_SELECTED, IDC_ALL + _App.Export_WhichHist ()); CheckDlgButton (IDC_COMPLETEDONLY, _App.Export_Hist_CompletedOnly () ? BST_CHECKED : BST_UNCHECKED); CheckDlgButton (IDC_APPEND, _App.Export_Hist_Append () ? BST_CHECKED : BST_UNCHECKED); ApplyLanguage (); return TRUE; }
BOOL CDlgExportDownloads::OnInitDialog() { CDialog::OnInitDialog(); CheckRadioButton (IDC_ALL, IDC_SELECTED, IDC_ALL + _App.Export_WhichDlds ()); CheckDlgButton (IDC_NOCOMPLETED, _App.Export_DontExpCompleted () ? BST_CHECKED : BST_UNCHECKED); CheckDlgButton (IDC_APPEND, _App.Export_Append () ? BST_CHECKED : BST_UNCHECKED); ApplyLanguage (); return TRUE; }
BOOL CSiteManager_PasswordsPage::OnInitDialog() { CPropertyPage::OnInitDialog(); CheckDlgButton (IDC_USE, _App.SM_KeepPasswords () ? BST_CHECKED : BST_UNCHECKED); CheckRadioButton (IDC_ASK, IDC_DONTASK, _App.SM_PwdsManualAddition () ? IDC_DONTASK : IDC_ASK); CheckDlgButton (IDC_AUTODEL, _App.SM_DontSavePwdsToDisk () ? BST_CHECKED : BST_UNCHECKED); ApplyLanguage (); UpdateEnabled (); return TRUE; }
BOOL CDlg_CheckFileIntegrity_Progress::OnInitDialog() { CDialog::OnInitDialog(); ApplyLanguage (); DWORD dw; CloseHandle ( CreateThread (NULL, 0, _threadDoJob, this, 0, &dw)); return TRUE; }
BOOL CDlg_UnpackSettings::OnInitDialog() { CDialog::OnInitDialog(); m_btnBrowse.SetIcon (SICO (IDI_CHOOSEFOLDER)); SetDlgItemText (IDC_DSTFOLDER, m_strDstFolder); ApplyLanguage (); return TRUE; }