本文整理汇总了C++中UpdateEnabled函数的典型用法代码示例。如果您正苦于以下问题:C++ UpdateEnabled函数的具体用法?C++ UpdateEnabled怎么用?C++ UpdateEnabled使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了UpdateEnabled函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SetDlgItemText
void CDownloadProperties_GeneralPage::ReadAuthorization()
{
fsDownload_NetworkProperties dnp;
fsDownload_NetworkProperties *dnp0 = m_pvDlds->at (0)->pMgr->GetDownloadMgr ()->GetDNP ();
if (DNP_EQ (pszUserName, TRUE))
SetDlgItemText (IDC_USER, dnp0->pszUserName);
if (DNP_EQ (pszPassword, TRUE))
SetDlgItemText (IDC_PASSWORD, dnp0->pszPassword);
BOOL bUse = dnp0->pszUserName [0] != 0;
CheckDlgButton (IDC_USELOGIN, bUse ? BST_CHECKED : BST_UNCHECKED);
for (int i = m_pvDlds->size () - 1; i > 0; i--)
{
BOOL bU = m_pvDlds->at (i)->pMgr->GetDownloadMgr ()->GetDNP ()->pszUserName [0] != 0;
if (bU != bUse)
{
CheckDlgButton (IDC_USELOGIN, BST_INDETERMINATE);
break;
}
}
m_bUserChanged = m_bPasswordChanged = FALSE;
UpdateEnabled ();
}
示例2: 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;
}
示例3: CheckDlgButton
void CBtDld_General::OnUselogin()
{
if (IsDlgButtonChecked (IDC_USELOGIN) == BST_INDETERMINATE)
CheckDlgButton (IDC_USELOGIN, BST_UNCHECKED);
UpdateEnabled ();
}
示例4: CheckDlgButton
void CDlgDeletedProperties::OnDontuse()
{
if (IsDlgButtonChecked (IDC_DONTUSE) == BST_CHECKED)
CheckDlgButton (IDC_CONFIRMDELETION, BST_CHECKED);
UpdateEnabled ();
}
示例5: 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;
}
示例6: fsNPToSiteValidFor
void CSpiderAddPageDlg::OnUrlChanged()
{
fsURL url;
if (IR_SUCCESS != url.Crack (m_strUrl))
return;
fsSiteInfo *site = _SitesMgr.FindSite2 (url.GetHostName (), fsNPToSiteValidFor (fsSchemeToNP (url.GetInternetScheme ())));
if (site)
{
if (site->strUser != NULL && m_bAuthChanged == FALSE && *url.GetUserName () == 0)
{
CheckDlgButton (IDC_USELOGIN, BST_CHECKED);
SetDlgItemText (IDC_USER, site->strUser);
if (site->strPassword)
SetDlgItemText (IDC_PASSWORD, site->strPassword);
UpdateEnabled ();
}
if (site->pGroup && m_bGroupChanged == FALSE)
{
m_wndGroups.SelectGroup (site->pGroup);
OnChangeGroups();
}
}
BuildOutFolder ();
}
示例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: CheckDlgButton
void CDownloaderProperties_BtPage::ModeToDlg()
{
m_bDontSetModif = true;
int mode = m_tabTrafficModes.GetCurSel ();
if (m_vModes [mode].iUplTrafLim != -1)
{
vmsDialogHelper::SetDlgBytesGroup (this, m_vModes [mode].iUplTrafLim,
IDC_LIMITVAL, IDC_LIMITDIM);
CheckDlgButton (IDC_LIMIT, BST_CHECKED);
}
else
{
CheckDlgButton (IDC_LIMIT, BST_UNCHECKED);
}
if (m_vModes [mode].iUplConnLim != -1)
{
SetDlgItemInt (IDC_UPLLIMITVAL, m_vModes [mode].iUplConnLim);
CheckDlgButton (IDC_LIMITUPLOADS, BST_CHECKED);
}
else
{
CheckDlgButton (IDC_LIMITUPLOADS, BST_UNCHECKED);
}
SetDlgItemInt (IDC_MAXHALFSVAL, m_vModes [mode].iMaxHalfConnections);
UpdateEnabled ();
m_bDontSetModif = false;
}
示例9: 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;
}
示例10: 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;
}
示例11: SetIcon
BOOL CWebInterfaceDlg::OnInitDialog()
{
CDialog::OnInitDialog();
SetIcon(m_hIcon, TRUE);
SetIcon(m_hIcon, FALSE);
UINT nIdIcon = IDR_MAINFRAME;
_TrayMgr.Create (m_hWnd, &nIdIcon, 1, "FDM remote control server", WM_TRAYMSG);
m_http.set_Port (AfxGetApp ()->GetProfileInt ("Network", "Port", 80));
SetDlgItemInt (IDC_PORT, m_http.get_Port ());
m_http.Start ();
UpdateAddress ();
fsAutorunMgr am;
CheckDlgButton (IDC_AUTORUN, am.IsAutoStart () ? BST_CHECKED : BST_UNCHECKED);
CString strU = AfxGetApp ()->GetProfileString ("Network", "Login", "");
CString strP = AfxGetApp ()->GetProfileString ("Network", "Password", "");
if (strU.IsEmpty () == FALSE)
{
CheckDlgButton (IDC_USEPWD, BST_CHECKED);
SetDlgItemText (IDC_USER, strU);
SetDlgItemText (IDC_PWD, strP);
}
UpdateEnabled ();
return TRUE;
}
示例12: CheckDlgButton
void CDlg_Options_Downloads_Bittorrent::ModeToDlg()
{
int mode = m_tabTrafficModes.GetCurSel ();
if (m_vModes [mode].iUplTrafLim != -1)
{
vmsDialogHelper::SetDlgBytesGroup (this, m_vModes [mode].iUplTrafLim,
IDC_LIMITVAL, IDC_LIMITDIM);
CheckDlgButton (IDC_LIMIT, BST_CHECKED);
}
else
{
CheckDlgButton (IDC_LIMIT, BST_UNCHECKED);
}
if (m_vModes [mode].iUplConnLim != -1)
{
SetDlgItemInt (IDC_UPLLIMITVAL, m_vModes [mode].iUplConnLim);
CheckDlgButton (IDC_LIMITUPLOADS, BST_CHECKED);
}
else
{
CheckDlgButton (IDC_LIMITUPLOADS, BST_UNCHECKED);
}
SetDlgItemInt (IDC_MAXHALFSVAL, m_vModes [mode].iMaxHalfConnections);
UpdateEnabled ();
}
示例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: 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;
}
示例15: CheckDlgButton
void CDownloadProperties_GeneralPage::OnUselogin()
{
if (IsDlgButtonChecked (IDC_USELOGIN) == BST_INDETERMINATE)
CheckDlgButton (IDC_USELOGIN, BST_UNCHECKED);
UpdateEnabled ();
SetModified ();
}