本文整理匯總了C++中ApplyLanguage函數的典型用法代碼示例。如果您正苦於以下問題:C++ ApplyLanguage函數的具體用法?C++ ApplyLanguage怎麽用?C++ ApplyLanguage使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了ApplyLanguage函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例15: ApplyLanguage
BOOL CEnterKeyDlg::OnInitDialog()
{
CDialog::OnInitDialog();
ApplyLanguage ();
return TRUE;
}