本文整理匯總了C++中AdjustControlSize函數的典型用法代碼示例。如果您正苦於以下問題:C++ AdjustControlSize函數的具體用法?C++ AdjustControlSize怎麽用?C++ AdjustControlSize使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了AdjustControlSize函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: AdjustControlSize
// CIgnoreDlg message handlers
BOOL CIgnoreDlg::OnInitDialog()
{
CStateStandAloneDialog::OnInitDialog();
this->CheckRadioButton(IDC_RADIO_IGNOREFILE_GLOBALGITIGNORE, IDC_RADIO_IGNOREFILE_GITINFOEXCLUDE, IDC_RADIO_IGNOREFILE_GLOBALGITIGNORE + m_IgnoreType);
AdjustControlSize(IDC_RADIO_IGNOREFILE_GLOBALGITIGNORE);
AdjustControlSize(IDC_RADIO_IGNOREFILE_LOCALGITIGNORES);
AdjustControlSize(IDC_RADIO_IGNOREFILE_GITINFOEXCLUDE);
this->CheckRadioButton(IDC_RADIO_IGNORETYPE_ONLYINFOLDER, IDC_RADIO_IGNORETYPE_RECURSIVELY, IDC_RADIO_IGNORETYPE_ONLYINFOLDER + m_IgnoreType);
AdjustControlSize(IDC_RADIO_IGNORETYPE_ONLYINFOLDER);
AdjustControlSize(IDC_RADIO_IGNORETYPE_RECURSIVELY);
EnableSaveRestore(_T("IgnoreDlg"));
return TRUE;
}
示例2: GetWindowText
BOOL CAddDlg::OnInitDialog()
{
CResizableStandAloneDialog::OnInitDialog();
CAppUtils::MarkWindowAsUnpinnable(m_hWnd);
// initialize the svn status list control
m_addListCtrl.Init(GITSLC_COLEXT, L"AddDlg", GITSLC_POPALL ^ (GITSLC_POPADD | GITSLC_POPCOMMIT | GITSLC_POPCHANGELISTS | GITSLC_POPPREPAREDIFF | GITSLC_POPCHANGELISTS), true, true, GITSLC_COLEXT | GITSLC_COLMODIFICATIONDATE | GITSLC_COLSIZE); // adding and committing is useless in the add dialog
m_addListCtrl.SetIgnoreRemoveOnly(); // when ignoring, don't add the parent folder since we're in the add dialog
m_addListCtrl.SetSelectButton(&m_SelectAll);
m_addListCtrl.SetConfirmButton(static_cast<CButton*>(GetDlgItem(IDOK)));
m_addListCtrl.SetEmptyString(IDS_ERR_NOTHINGTOADD);
m_addListCtrl.SetCancelBool(&m_bCancelled);
m_addListCtrl.SetBackgroundImage(IDI_ADD_BKG);
m_addListCtrl.EnableFileDrop();
CString sWindowTitle;
GetWindowText(sWindowTitle);
CAppUtils::SetWindowTitle(m_hWnd, g_Git.CombinePath(m_pathList.GetCommonRoot().GetUIPathString()), sWindowTitle);
AdjustControlSize(IDC_SELECTALL);
AdjustControlSize(IDC_INCLUDE_IGNORED);
AddAnchor(IDC_ADDLIST, TOP_LEFT, BOTTOM_RIGHT);
AddAnchor(IDC_SELECTALL, BOTTOM_LEFT);
AddAnchor(IDC_INCLUDE_IGNORED, BOTTOM_LEFT);
AddAnchor(IDOK, BOTTOM_RIGHT);
AddAnchor(IDCANCEL, BOTTOM_RIGHT);
AddAnchor(IDHELP, BOTTOM_RIGHT);
if (GetExplorerHWND())
CenterWindow(CWnd::FromHandle(GetExplorerHWND()));
EnableSaveRestore(L"AddDlg");
//first start a thread to obtain the file list with the status without
//blocking the dialog
InterlockedExchange(&m_bThreadRunning, TRUE);
if (!AfxBeginThread(AddThreadEntry, this))
{
InterlockedExchange(&m_bThreadRunning, FALSE);
CMessageBox::Show(this->m_hWnd, IDS_ERR_THREADSTARTFAILED, IDS_APPNAME, MB_OK | MB_ICONERROR);
}
return TRUE;
}
示例3: AddAnchor
BOOL CGitSwitchDlg::OnInitDialog()
{
CHorizontalResizableStandAloneDialog::OnInitDialog();
CAppUtils::MarkWindowAsUnpinnable(m_hWnd);
AddAnchor(IDC_GROUP_OPTION, TOP_LEFT, TOP_RIGHT);
AddAnchor(IDC_EDIT_BRANCH, TOP_LEFT, TOP_RIGHT);
AddAnchor(IDOK,BOTTOM_RIGHT);
AddAnchor(IDCANCEL,BOTTOM_RIGHT);
AddAnchor(IDHELP,BOTTOM_RIGHT);
CHOOSE_VERSION_ADDANCHOR;
this->AddOthersToAnchor();
AdjustControlSize(IDC_RADIO_BRANCH);
AdjustControlSize(IDC_RADIO_TAGS);
AdjustControlSize(IDC_RADIO_VERSION);
AdjustControlSize(IDC_CHECK_BRANCH);
AdjustControlSize(IDC_CHECK_FORCE);
AdjustControlSize(IDC_CHECK_MERGE);
AdjustControlSize(IDC_CHECK_TRACK);
AdjustControlSize(IDC_CHECK_BRANCHOVERRIDE);
EnableSaveRestore(_T("SwitchDlg"));
CString sWindowTitle;
GetWindowText(sWindowTitle);
CAppUtils::SetWindowTitle(m_hWnd, g_Git.m_CurrentDir, sWindowTitle);
Init(true);
SetDefaultChoose(IDC_RADIO_BRANCH);
GetDlgItem(IDC_CHECK_BRANCH)->SetFocus();
this->GetDlgItem(IDC_CHECK_TRACK)->EnableWindow(FALSE);
//Create the ToolTip control
if (!m_ToolTip.Create(this))
{
TRACE0("Unable to create the ToolTip!");
}
else
{
m_ToolTip.AddTool(GetDlgItem(IDC_CHECK_FORCE), CString(MAKEINTRESOURCE(IDS_PROC_NEWBRANCHTAG_FORCE_TT)));
m_ToolTip.AddTool(GetDlgItem(IDC_CHECK_MERGE), CString(MAKEINTRESOURCE(IDS_PROC_SWITCH_MERGE_TT)));
m_ToolTip.AddTool(GetDlgItem(IDC_CHECK_TRACK), CString(MAKEINTRESOURCE(IDS_PROC_NEWBRANCHTAG_TRACK_TT)));
m_ToolTip.Activate(TRUE);
}
return FALSE;
}
示例4: AdjustControlSize
BOOL CSettingsProgsAlternativeEditor::OnInitDialog()
{
ISettingsPropPage::OnInitDialog();
AdjustControlSize(IDC_ALTERNATIVEEDITOR_OFF);
AdjustControlSize(IDC_ALTERNATIVEEDITOR_ON);
EnableToolTips();
m_sAlternativeEditorPath = m_regAlternativeEditorPath;
m_iAlternativeEditor = IsExternal(m_sAlternativeEditorPath);
SHAutoComplete(::GetDlgItem(m_hWnd, IDC_ALTERNATIVEEDITOR), SHACF_FILESYSTEM | SHACF_FILESYS_ONLY);
m_tooltips.AddTool(IDC_ALTERNATIVEEDITOR, IDS_SETTINGS_ALTERNATIVEEDITOR_TT);
UpdateData(FALSE);
return TRUE;
}
示例5: AfxMessageBox
BOOL CSetBugTraqAdv::OnInitDialog()
{
CResizableStandAloneDialog::OnInitDialog();
std::vector<CBugTraqProvider> providers = CBugTraqAssociations::GetAvailableProviders();
if (providers.empty())
{
AfxMessageBox(IDS_ERR_NO_AVAILABLE_BUGTRAQ_PROVIDERS);
EndDialog(IDCANCEL);
return TRUE;
}
for (auto it = providers.cbegin(); it != providers.cend(); ++it)
{
int index = m_cProviderCombo.AddString(it->name);
m_cProviderCombo.SetItemDataPtr(index, new CBugTraqProvider(*it));
}
// preselect the right provider in the combo; we can't do this above, because the
// combo will sort the entries.
if (m_provider_clsid == GUID_NULL)
m_cProviderCombo.SetCurSel(0);
for (int i = 0; i < m_cProviderCombo.GetCount(); ++i)
{
CBugTraqProvider *p = (CBugTraqProvider *)m_cProviderCombo.GetItemDataPtr(i);
if (p->clsid == m_provider_clsid)
{
m_cProviderCombo.SetCurSel(i);
break;
}
}
UpdateData(FALSE);
CheckHasOptions();
AdjustControlSize(IDC_ENABLE);
AddAnchor(IDC_ENABLE, TOP_LEFT);
AddAnchor(IDC_BUGTRAQWCPATHLABEL, TOP_LEFT, TOP_RIGHT);
AddAnchor(IDC_BUGTRAQPATH, TOP_LEFT, TOP_RIGHT);
AddAnchor(IDC_BUGTRAQBROWSE, TOP_RIGHT);
AddAnchor(IDC_BUGTRAQPROVIDERLABEL, TOP_LEFT, TOP_RIGHT);
AddAnchor(IDC_BUGTRAQPROVIDERCOMBO, TOP_LEFT, TOP_RIGHT);
AddAnchor(IDC_BUGTRAQPARAMETERSLABEL, TOP_LEFT, TOP_RIGHT);
AddAnchor(IDC_BUGTRAQPARAMETERS, TOP_LEFT, TOP_RIGHT);
AddAnchor(IDC_OPTIONS, TOP_RIGHT);
AddAnchor(IDOK, BOTTOM_RIGHT);
AddAnchor(IDCANCEL, BOTTOM_RIGHT);
AddAnchor(IDHELP, BOTTOM_RIGHT);
EnableSaveRestore(L"SetBugTraqAdvDlg");
return TRUE;
}
示例6: str
BOOL CSubmoduleUpdateDlg::OnInitDialog()
{
CStandAloneDialog::OnInitDialog();
CAppUtils::MarkWindowAsUnpinnable(m_hWnd);
CString str(g_Git.m_CurrentDir);
str.Replace(_T(":"), _T("_"));
m_regShowWholeProject = CRegDWORD(_T("Software\\TortoiseGit\\TortoiseProc\\ShowWholeProject\\") + str, FALSE);
m_bWholeProject = m_regShowWholeProject;
m_regInit = CRegDWORD(_T("Software\\TortoiseGit\\TortoiseProc\\SubmoduleUpdate\\") + str + _T("\\init"), TRUE);
m_bInit = m_regInit;
m_regRecursive = CRegDWORD(_T("Software\\TortoiseGit\\TortoiseProc\\SubmoduleUpdate\\") + str + _T("\\recursive"), FALSE);
m_bRecursive = m_regRecursive;
m_regForce = CRegDWORD(_T("Software\\TortoiseGit\\TortoiseProc\\SubmoduleUpdate\\") + str + _T("\\force"), FALSE);
m_bForce = m_regForce;
m_regRemote = CRegDWORD(_T("Software\\TortoiseGit\\TortoiseProc\\SubmoduleUpdate\\") + str + _T("\\remote"), FALSE);
m_bRemote = m_regRemote;
m_regNoFetch = CRegDWORD(_T("Software\\TortoiseGit\\TortoiseProc\\SubmoduleUpdate\\") + str + _T("\\nofetch"), FALSE);
m_bNoFetch = m_regNoFetch;
m_regMerge = CRegDWORD(_T("Software\\TortoiseGit\\TortoiseProc\\SubmoduleUpdate\\") + str + _T("\\merge"), FALSE);
m_bMerge = m_regMerge;
m_regRebase = CRegDWORD(_T("Software\\TortoiseGit\\TortoiseProc\\SubmoduleUpdate\\") + str + _T("\\rebase"), FALSE);
m_bRebase = m_regRebase;
DialogEnableWindow(IDC_WHOLE_PROJECT, !(m_PathFilterList.empty() || (m_PathFilterList.size() == 1 && m_PathFilterList[0].IsEmpty())));
SetDlgTitle();
AdjustControlSize(IDC_CHECK_SUBMODULE_INIT);
AdjustControlSize(IDC_CHECK_SUBMODULE_RECURSIVE);
AdjustControlSize(IDC_CHECK_SUBMODULE_NOFETCH);
AdjustControlSize(IDC_CHECK_SUBMODULE_MERGE);
AdjustControlSize(IDC_CHECK_SUBMODULE_REBASE);
Refresh();
UpdateData(FALSE);
return TRUE;
}
示例7: AdjustControlSize
BOOL CSettingGitRemote::OnInitDialog()
{
ISettingsPropPage::OnInitDialog();
AdjustControlSize(IDC_CHECK_PRUNE);
AdjustControlSize(IDC_CHECK_PRUNEALL);
AdjustControlSize(IDC_CHECK_PUSHDEFAULT);
STRING_VECTOR remotes;
g_Git.GetRemoteList(remotes);
m_ctrlRemoteList.ResetContent();
for (size_t i = 0; i < remotes.size(); i++)
m_ctrlRemoteList.AddString(remotes[i]);
m_ctrlTagOpt.AddString(CString(MAKEINTRESOURCE(IDS_FETCH_REACHABLE)));
m_ctrlTagOpt.AddString(CString(MAKEINTRESOURCE(IDS_NONE)));
m_ctrlTagOpt.AddString(CString(MAKEINTRESOURCE(IDS_ALL)));
m_ctrlTagOpt.SetCurSel(0);
CString pruneAll = g_Git.GetConfigValue(L"fetch.prune");
m_bPruneAll = pruneAll == L"true" ? TRUE : FALSE;
{
CString tmp;
tmp.Format(IDS_GITCONFIG_SETTING, L"remote.pushdefault");
m_tooltips.AddTool(IDC_CHECK_PUSHDEFAULT, tmp);
tmp.Format(IDS_GITCONFIG_SETTING, L"remote.<name>.prune");
m_tooltips.AddTool(IDC_CHECK_PRUNE, tmp);
tmp.Format(IDS_GITCONFIG_SETTING, L"fetch.prune");
m_tooltips.AddTool(IDC_CHECK_PRUNEALL, tmp);
tmp.Format(IDS_GITCONFIG_SETTING, L"remote<name>.tagopt");
m_tooltips.AddTool(IDC_COMBO_TAGOPT, tmp);
}
//this->GetDlgItem(IDC_EDIT_REMOTE)->EnableWindow(FALSE);
this->UpdateData(FALSE);
SetTimer(TIMER_PREFILL, 1000, nullptr);
return TRUE;
}
示例8: ExtendFrameIntoClientArea
BOOL CEditPropKeywords::OnInitDialog()
{
CStandAloneDialog::OnInitDialog();
CAppUtils::MarkWindowAsUnpinnable(m_hWnd);
ExtendFrameIntoClientArea(IDC_DWM);
m_aeroControls.SubclassControl(this, IDC_PROPRECURSIVE);
m_aeroControls.SubclassOkCancelHelp(this);
std::transform(m_PropValue.begin(), m_PropValue.end(), m_PropValue.begin(),
[](char c) { return std::tolower(c); });
if ((m_PropValue.find("author") != std::string::npos) ||
(m_PropValue.find("lastchangedby") != std::string::npos))
m_bAuthor = true;
if ((m_PropValue.find("date") != std::string::npos) ||
(m_PropValue.find("lastchangeddate") != std::string::npos))
m_bDate = true;
if (m_PropValue.find("id") != std::string::npos)
m_bID = true;
if ((m_PropValue.find("revision") != std::string::npos) ||
(m_PropValue.find("rev") != std::string::npos) ||
(m_PropValue.find("lastchangedrevision") != std::string::npos))
m_bRevision = true;
if ((m_PropValue.find("url") != std::string::npos) ||
(m_PropValue.find("headurl") != std::string::npos))
m_bURL = true;
if (m_PropValue.find("header") != std::string::npos)
m_bHeader = true;
GetDlgItem(IDC_PROPRECURSIVE)->EnableWindow(!m_bFolder || m_bMultiple);
GetDlgItem(IDC_PROPRECURSIVE)->ShowWindow(m_bRevProps || (!m_bFolder && !m_bMultiple) || m_bRemote ? SW_HIDE : SW_SHOW);
CString sWindowTitle;
GetWindowText(sWindowTitle);
CAppUtils::SetWindowTitle(m_hWnd, m_pathList.GetCommonRoot().GetUIPathString(), sWindowTitle);
AdjustControlSize(IDC_AUTHORKEY);
AdjustControlSize(IDC_DATE);
AdjustControlSize(IDC_ID);
AdjustControlSize(IDC_REV);
AdjustControlSize(IDC_URL);
AdjustControlSize(IDC_HEADER);
AdjustControlSize(IDC_PROPRECURSIVE);
if (m_bFolder)
{
// for folders, the property can only be set recursively
m_bRecursive = TRUE;
}
UpdateData(false);
return TRUE;
}
示例9: AppendStringResource
BOOL CFirstStartWizardLanguage::OnInitDialog()
{
CFirstStartWizardBasePage::OnInitDialog();
CString hinttext;
hinttext.LoadString(IDS_FIRSTSTART_LANGUAGEHINT1);
AppendStringResource(hinttext, IDS_FIRSTSTART_LANGUAGEHINT2);
AppendStringResource(hinttext, IDS_FIRSTSTART_LANGUAGEHINT3);
GetDlgItem(IDC_FIRSTSTART_HINT)->SetWindowText(hinttext);
GetDlgItem(IDC_LINK)->SetWindowText(DOWNLOAD_URL);
m_link.SetURL(DOWNLOAD_URL);
AdjustControlSize(IDC_LINK, false);
OnBnClickedRefresh();
return TRUE;
}
示例10: ExtendFrameIntoClientArea
BOOL CResolveDlg::OnInitDialog()
{
CResizableStandAloneDialog::OnInitDialog();
CAppUtils::MarkWindowAsUnpinnable(m_hWnd);
ExtendFrameIntoClientArea(IDC_RESOLVELIST, IDC_RESOLVELIST, IDC_RESOLVELIST, IDC_RESOLVELIST);
m_aeroControls.SubclassControl(this, IDC_SELECTALL);
m_aeroControls.SubclassOkCancelHelp(this);
m_resolveListCtrl.Init(SVNSLC_COLEXT | SVNSLC_COLSTATUS | SVNSLC_COLPROPSTATUS, L"ResolveDlg", SVNSLC_POPALL ^ (SVNSLC_POPIGNORE|SVNSLC_POPADD|SVNSLC_POPCOMMIT|SVNSLC_POPCREATEPATCH|SVNSLC_POPRESTORE));
m_resolveListCtrl.SetConfirmButton((CButton*)GetDlgItem(IDOK));
m_resolveListCtrl.SetSelectButton(&m_SelectAll);
m_resolveListCtrl.SetCancelBool(&m_bCancelled);
m_resolveListCtrl.SetBackgroundImage(IDI_RESOLVE_BKG);
m_resolveListCtrl.EnableFileDrop();
CString sWindowTitle;
GetWindowText(sWindowTitle);
CAppUtils::SetWindowTitle(m_hWnd, m_pathList.GetCommonRoot().GetUIPathString(), sWindowTitle);
AdjustControlSize(IDC_SELECTALL);
AddAnchor(IDC_RESOLVELIST, TOP_LEFT, BOTTOM_RIGHT);
AddAnchor(IDC_SELECTALL, BOTTOM_LEFT);
AddAnchor(IDOK, BOTTOM_RIGHT);
AddAnchor(IDCANCEL, BOTTOM_RIGHT);
AddAnchor(IDHELP, BOTTOM_RIGHT);
if (GetExplorerHWND())
CenterWindow(CWnd::FromHandle(GetExplorerHWND()));
EnableSaveRestore(L"ResolveDlg");
// first start a thread to obtain the file list with the status without
// blocking the dialog
if(AfxBeginThread(ResolveThreadEntry, this) == NULL)
{
OnCantStartThread();
}
InterlockedExchange(&m_bThreadRunning, TRUE);
return TRUE;
}
示例11: _T
BOOL CRevertDlg::OnInitDialog()
{
CResizableStandAloneDialog::OnInitDialog();
CAppUtils::MarkWindowAsUnpinnable(m_hWnd);
m_RevertList.Init(GITSLC_COLEXT | GITSLC_COLSTATUS | GITSLC_COLADD| GITSLC_COLDEL, _T("RevertDlg"));
m_RevertList.SetConfirmButton((CButton*)GetDlgItem(IDOK));
m_RevertList.SetSelectButton(&m_SelectAll);
m_RevertList.SetCancelBool(&m_bCancelled);
m_RevertList.SetBackgroundImage(IDI_REVERT_BKG);
m_RevertList.EnableFileDrop();
CString sWindowTitle;
GetWindowText(sWindowTitle);
if (m_pathList.GetCount() == 1)
CAppUtils::SetWindowTitle(m_hWnd, (g_Git.m_CurrentDir + _T("\\") + m_pathList[0].GetUIPathString()).TrimRight('\\'), sWindowTitle);
else
CAppUtils::SetWindowTitle(m_hWnd, m_pathList.GetCommonRoot().GetUIPathString(), sWindowTitle);
AdjustControlSize(IDC_SELECTALL);
AddAnchor(IDC_REVERTLIST, TOP_LEFT, BOTTOM_RIGHT);
AddAnchor(IDC_SELECTALL, BOTTOM_LEFT);
AddAnchor(IDC_UNVERSIONEDITEMS, BOTTOM_RIGHT);
AddAnchor(IDOK, BOTTOM_RIGHT);
AddAnchor(IDCANCEL, BOTTOM_RIGHT);
AddAnchor(IDHELP, BOTTOM_RIGHT);
if (hWndExplorer)
CenterWindow(CWnd::FromHandle(hWndExplorer));
EnableSaveRestore(_T("RevertDlg"));
// first start a thread to obtain the file list with the status without
// blocking the dialog
if (AfxBeginThread(RevertThreadEntry, this)==0)
{
CMessageBox::Show(this->m_hWnd, IDS_ERR_THREADSTARTFAILED, IDS_APPNAME, MB_OK | MB_ICONERROR);
}
InterlockedExchange(&m_bThreadRunning, TRUE);
return TRUE;
}
示例12: AdjustControlSize
BOOL CCleanTypeDlg::OnInitDialog()
{
CStateStandAloneDialog::OnInitDialog();
CAppUtils::MarkWindowAsUnpinnable(m_hWnd);
AdjustControlSize(IDC_RADIO_CLEAN_ALL);
AdjustControlSize(IDC_RADIO_CLEAN_NO);
AdjustControlSize(IDC_RADIO_CLEAN_IGNORE);
AdjustControlSize(IDC_CHECK_DIR);
AdjustControlSize(IDC_CHECK_NORECYCLEBIN);
AdjustControlSize(IDC_CHECK_DRYRUN);
AdjustControlSize(IDC_CHECKSUBMODULES);
EnableSaveRestore(_T("CleanTypeDlg"));
SetDlgTitle();
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
示例13: AdjustControlSize
BOOL CSettingSMTP::OnInitDialog()
{
ISettingsPropPage::OnInitDialog();
AdjustControlSize(IDC_SMTP_AUTH);
int idx = m_SMTPDeliveryTypeCombo.AddString(CString(MAKEINTRESOURCE(IDS_SMTP_DIRECTLY)));
m_SMTPDeliveryTypeCombo.SetItemData(idx, SEND_MAIL_SMTP_DIRECT);
CString mailCient;
CMailMsg::DetectMailClient(mailCient);
if (!mailCient.IsEmpty())
{
idx = m_SMTPDeliveryTypeCombo.AddString(CString(MAKEINTRESOURCE(IDS_SMTP_MAPI)));
m_SMTPDeliveryTypeCombo.SetItemData(idx, SEND_MAIL_MAPI);
}
idx = m_SMTPDeliveryTypeCombo.AddString(CString(MAKEINTRESOURCE(IDS_SMTP_CONFIGURED)));
m_SMTPDeliveryTypeCombo.SetItemData(idx, SEND_MAIL_SMTP_CONFIGURED);
if ((int)m_dwDeliveryType >= m_SMTPDeliveryTypeCombo.GetCount())
m_dwDeliveryType = 0;
m_SMTPDeliveryTypeCombo.SetCurSel(m_dwDeliveryType);
m_SMTPEncryptionCombo.AddString(CString(MAKEINTRESOURCE(IDS_ENCRYPT_NONE)));
m_SMTPEncryptionCombo.AddString(CString(MAKEINTRESOURCE(IDS_ENCRYPT_STARTTLS)));
m_SMTPEncryptionCombo.AddString(CString(MAKEINTRESOURCE(IDS_ENCRYPT_SSL)));
if ((int)m_dwSMTPEnrcyption >= m_SMTPEncryptionCombo.GetCount())
m_dwSMTPEnrcyption = 0;
m_SMTPEncryptionCombo.SetCurSel(m_dwSMTPEnrcyption);
this->UpdateData(FALSE);
OnModifiedDeliveryCombo();
OnBnClickedSmtpAuth();
return TRUE;
}
示例14: AdjustControlSize
BOOL CSetOverlayHandlers::OnInitDialog()
{
ISettingsPropPage::OnInitDialog();
AdjustControlSize(IDC_SHOWIGNOREDOVERLAY);
AdjustControlSize(IDC_SHOWUNVERSIONEDOVERLAY);
AdjustControlSize(IDC_SHOWADDEDOVERLAY);
AdjustControlSize(IDC_SHOWLOCKEDOVERLAY);
AdjustControlSize(IDC_SHOWREADONLYOVERLAY);
AdjustControlSize(IDC_SHOWDELETEDOVERLAY);
UpdateInfoLabel();
UpdateData(FALSE);
return TRUE;
}
示例15: AddAnchor
// CResetDlg message handlers
BOOL CResetDlg::OnInitDialog()
{
CHorizontalResizableStandAloneDialog::OnInitDialog();
CAppUtils::MarkWindowAsUnpinnable(m_hWnd);
AddAnchor(IDC_SHOW_MODIFIED_FILES, TOP_LEFT, TOP_RIGHT);
AddAnchor(IDC_GROUP_RESET_TYPE, TOP_LEFT, TOP_RIGHT);
AddAnchor(IDOK, BOTTOM_RIGHT);
AddAnchor(IDCANCEL, BOTTOM_RIGHT);
AddAnchor(IDHELP, BOTTOM_RIGHT);
CHOOSE_VERSION_ADDANCHOR;
this->AddOthersToAnchor();
AdjustControlSize(IDC_RADIO_BRANCH);
AdjustControlSize(IDC_RADIO_TAGS);
AdjustControlSize(IDC_RADIO_VERSION);
AdjustControlSize(IDC_RADIO_RESET_SOFT);
AdjustControlSize(IDC_RADIO_RESET_MIXED);
AdjustControlSize(IDC_RADIO_RESET_HARD);
EnableSaveRestore(_T("ResetDlg"));
CString resetTo;
CString currentBranch = g_Git.GetCurrentBranch();
resetTo.Format(IDS_PROC_RESETBRANCH, currentBranch);
GetDlgItem(IDC_GROUP_BASEON)->SetWindowTextW(resetTo);
if (g_GitAdminDir.IsBareRepo(g_Git.m_CurrentDir))
{
m_ResetType = 0;
DialogEnableWindow(IDC_RADIO_RESET_MIXED, FALSE);
DialogEnableWindow(IDC_RADIO_RESET_HARD, FALSE);
}
this->CheckRadioButton(IDC_RADIO_RESET_SOFT,IDC_RADIO_RESET_HARD,IDC_RADIO_RESET_SOFT+m_ResetType);
InitChooseVersion();
SetDefaultChoose(IDC_RADIO_BRANCH);
GetDlgItem(IDC_RADIO_RESET_SOFT + m_ResetType)->SetFocus();
return FALSE;
}