本文整理汇总了C++中ApplyLanguage函数的典型用法代码示例。如果您正苦于以下问题:C++ ApplyLanguage函数的具体用法?C++ ApplyLanguage怎么用?C++ ApplyLanguage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ApplyLanguage函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: ZeroMemory
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;
}
开发者ID:pedia,项目名称:raidget,代码行数:34,代码来源:urlwithlogindlg.cpp
示例2: SetDlgItemText
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;
}
开发者ID:naroya,项目名称:fdm,代码行数:28,代码来源:WaitForConfirmationDlg.cpp
示例3: CheckDlgButton
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;
}
开发者ID:andyTsing,项目名称:freedownload,代码行数:28,代码来源:DlgDeletedProperties.cpp
示例4: FillTimes
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;
}
开发者ID:pedia,项目名称:raidget,代码行数:27,代码来源:dlg_options_downloads_timelimit.cpp
示例5: GetDlgItem
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;
}
开发者ID:naroya,项目名称:fdm,代码行数:31,代码来源:Dlg_Download.cpp
示例6: LS
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;
}
开发者ID:naroya,项目名称:fdm,代码行数:33,代码来源:DlgSounds.cpp
示例7: GetDlgItem
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;
}
开发者ID:HackLinux,项目名称:Free-Download-Manager-vs2010,代码行数:26,代码来源:Prg_Data.cpp
示例8: UpdateBlendsVals
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;
}
开发者ID:andyTsing,项目名称:freedownload,代码行数:25,代码来源:Prg_GeneralPage_FWDlg.cpp
示例9: GetDlgItem
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;
}
开发者ID:pedia,项目名称:raidget,代码行数:26,代码来源:aerdlg.cpp
示例10: SICOEX
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;
}
开发者ID:pedia,项目名称:raidget,代码行数:27,代码来源:dlg_checkfileintegrity_result.cpp
示例11: AfxGetApp
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;
}
开发者ID:naroya,项目名称:fdm,代码行数:25,代码来源:Prg_GeneralPage.cpp
示例12: CheckDlgButton
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;
}
开发者ID:HackLinux,项目名称:Free-Download-Manager-vs2010,代码行数:31,代码来源:Prg_HistoryPage.cpp
示例13: LS
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;
}
开发者ID:DragonZX,项目名称:fdm2,代码行数:30,代码来源:DownloadProperties_MirrorsPage.cpp
示例14: switch
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;
}
开发者ID:pedia,项目名称:raidget,代码行数:58,代码来源:schedule_htspage.cpp
示例15: ApplyLanguage
BOOL CEnterKeyDlg::OnInitDialog()
{
CDialog::OnInitDialog();
ApplyLanguage ();
return TRUE;
}
开发者ID:naroya,项目名称:fdm,代码行数:9,代码来源:EnterKeyDlg.cpp
示例16: ApplyLanguage
BOOL CDlg_SavePassword::OnInitDialog()
{
CDialog::OnInitDialog();
ApplyLanguage ();
return TRUE;
}
开发者ID:andyTsing,项目名称:freedownload,代码行数:9,代码来源:Dlg_SavePassword.cpp
示例17: ApplyLanguage
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;
}
开发者ID:DragonZX,项目名称:fdm2,代码行数:57,代码来源:Dlg_CheckFileIntegrity.cpp
示例18: ASSERT
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;
}
开发者ID:naroya,项目名称:freedownload,代码行数:55,代码来源:CreateDownloadFromTorrentFileDlg.cpp
示例19: GetDlgItem
BOOL CTorrentMoveErrorDlg::OnInitDialog()
{
CDialog::OnInitDialog();
((CStatic*) GetDlgItem (IDC_DLGICON))->SetIcon (LoadIcon (NULL, IDI_QUESTION));
ApplyLanguage ();
return TRUE;
}
开发者ID:HackLinux,项目名称:Free-Download-Manager-vs2010,代码行数:11,代码来源:TorrentMoveErrorDlg.cpp
示例20: SetDlgItemText
BOOL CDlgExtensionsFilter::OnInitDialog()
{
CDialog::OnInitDialog();
SetDlgItemText (IDC_EXTS, m_strExts);
CheckRadioButton (IDC_REMOVE, IDC_LEAVE, m_bRemove ? IDC_REMOVE : IDC_LEAVE);
ApplyLanguage ();
return TRUE;
}
开发者ID:naroya,项目名称:freedownload,代码行数:12,代码来源:DlgExtensionsFilter.cpp
注:本文中的ApplyLanguage函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论