diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-18 23:31:10 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-18 23:31:10 +0300 |
commit | cfdb3f82a0aea038012cb9e2391fb5d93ac4b375 (patch) | |
tree | 77340fa5d4d02c96c0e6c302c4541f58c77d8688 /src | |
parent | abf8cd813bb0ac4f4f5451d2af929279d816abac (diff) |
fix for a roly-poly in plugin's options
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/pluginopts.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/mir_app/src/pluginopts.cpp b/src/mir_app/src/pluginopts.cpp index df8868bc34..9ace80867a 100644 --- a/src/mir_app/src/pluginopts.cpp +++ b/src/mir_app/src/pluginopts.cpp @@ -220,6 +220,7 @@ static int CALLBACK SortPlugins(LPARAM i1, LPARAM i2, LPARAM) class CPluginOptDlg : public CDlgBase
{
CTimer m_timer;
+ CCtrlBase m_author, m_plugPid, m_plugInfo, m_copyright;
CCtrlListView m_plugList;
CCtrlHyperlink m_link, m_plugUrl;
@@ -234,6 +235,10 @@ public: CDlgBase(g_hInst, IDD_OPT_PLUGINS),
m_link(this, IDC_GETMOREPLUGINS),
m_plugUrl(this, IDC_PLUGINURL, "https://miranda-ng.org/downloads/"),
+ m_author(this, IDC_PLUGINAUTHOR),
+ m_plugPid(this, IDC_PLUGINPID),
+ m_plugInfo(this, IDC_PLUGINLONGINFO),
+ m_copyright(this, IDC_PLUGINCPYR),
m_plugList(this, IDC_PLUGLIST),
m_timer(this, 1)
{
@@ -514,9 +519,9 @@ public: wchar_t buf[1024];
m_plugList.GetItemText(hdr->iItem, 2, buf, _countof(buf));
SetDlgItemText(m_hwnd, IDC_PLUGININFOFRAME, sel ? buf : L"");
- SetDlgItemText(m_hwnd, IDC_PLUGINAUTHOR, sel ? dat->author : L"");
- SetDlgItemText(m_hwnd, IDC_PLUGINLONGINFO, sel ? TranslateW_LP(dat->description, GetPluginLangByInstance(dat->hInst)) : L"");
- SetDlgItemText(m_hwnd, IDC_PLUGINCPYR, sel ? dat->copyright : L"");
+ m_author.SetText(sel ? dat->author : L"");
+ m_plugInfo.SetText(sel ? TranslateW_LP(dat->description, GetPluginLangByInstance(dat->hInst)) : L"");
+ m_copyright.SetText(sel ? dat->copyright : L"");
szUrl = sel ? _T2A(dat->homepage) : "";
m_plugUrl.SetUrl(szUrl);
@@ -525,9 +530,9 @@ public: if (dat->uuid != miid_last) {
char szUID[128];
uuidToString(dat->uuid, szUID, sizeof(szUID));
- SetDlgItemTextA(m_hwnd, IDC_PLUGINPID, sel ? szUID : "");
+ m_plugPid.SetTextA(sel ? szUID : "");
}
- else SetDlgItemText(m_hwnd, IDC_PLUGINPID, sel ? TranslateT("<none>") : L"");
+ else m_plugPid.SetText(sel ? TranslateT("<none>") : L"");
}
}
}
|