summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdb/src/ui.h
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-02-21 09:42:11 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-02-21 09:42:11 +0000
commit5380ed0fad80744e3093a6fb6f13f8d8a7b2e03a (patch)
treeaf15eeb3b7f96efca86f4d05afc9df694962e020 /plugins/Dbx_mdb/src/ui.h
parente151d6242dafb449fae9784e19e8122c44b57095 (diff)
dbx_lmdb: speed optimization
git-svn-id: http://svn.miranda-ng.org/main/trunk@16317 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_mdb/src/ui.h')
-rw-r--r--plugins/Dbx_mdb/src/ui.h27
1 files changed, 11 insertions, 16 deletions
diff --git a/plugins/Dbx_mdb/src/ui.h b/plugins/Dbx_mdb/src/ui.h
index d723e684c0..007104377e 100644
--- a/plugins/Dbx_mdb/src/ui.h
+++ b/plugins/Dbx_mdb/src/ui.h
@@ -4,21 +4,9 @@ class CSelectCryptoDialog : public CDlgBase
{
CCtrlCombo m_combo;
CCtrlData m_descr;
- //CCtrlCustom m_descr;
CRYPTO_PROVIDER **m_provs;
size_t m_provscount;
CRYPTO_PROVIDER *m_selected;
-public:
- CSelectCryptoDialog(CRYPTO_PROVIDER **provs, size_t count) :
- CDlgBase(g_hInst, IDD_SELECT_CRYPTOPROVIDER),
- m_combo(this, IDC_SELECTCRYPT_COMBO),
- m_descr(this, IDC_CRYPTOPROVIDER_DESCR),
- m_provs(provs),
- m_provscount(count),
- m_selected(nullptr)
- {
- m_combo.OnChange = Callback(this, &CSelectCryptoDialog::OnComboChanged);
- }
void OnInitDialog()
{
@@ -28,7 +16,7 @@ public:
m_combo.AddStringA(prov->pszName, i);
}
m_combo.SetCurSel(0);
- SetDescr(m_provs[0]);
+ m_descr.SetText(m_provs[0]->ptszDescr);
}
void OnClose()
@@ -38,12 +26,19 @@ public:
void OnComboChanged(CCtrlCombo*)
{
- SetDescr(m_provs[m_combo.GetItemData(m_combo.GetCurSel())]);
+ m_descr.SetText(m_provs[m_combo.GetItemData(m_combo.GetCurSel())]->ptszDescr);
}
- void SetDescr(CRYPTO_PROVIDER *prov)
+public:
+ CSelectCryptoDialog(CRYPTO_PROVIDER **provs, size_t count) :
+ CDlgBase(g_hInst, IDD_SELECT_CRYPTOPROVIDER),
+ m_combo(this, IDC_SELECTCRYPT_COMBO),
+ m_descr(this, IDC_CRYPTOPROVIDER_DESCR),
+ m_provs(provs),
+ m_provscount(count),
+ m_selected(nullptr)
{
- m_descr.SetText(prov->ptszDescr);
+ m_combo.OnChange = Callback(this, &CSelectCryptoDialog::OnComboChanged);
}
inline CRYPTO_PROVIDER* GetSelected()