summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-06-20 15:01:28 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-06-20 15:01:28 +0300
commit9d3d766aa5ec6ab8f91c957c6ad2c617380664f7 (patch)
treebb9c33997af457d53fd2b8acf1a8cde320857b8f /plugins
parentb52aae1e9c6355d1725e000dcf8824fc2fe40383 (diff)
fixes #3105 (PluginUpdater: привязать правый столбец к краю окна)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/PluginUpdater/src/DlgListNew.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/plugins/PluginUpdater/src/DlgListNew.cpp b/plugins/PluginUpdater/src/DlgListNew.cpp
index 78b29e7e05..c5b96495bc 100644
--- a/plugins/PluginUpdater/src/DlgListNew.cpp
+++ b/plugins/PluginUpdater/src/DlgListNew.cpp
@@ -52,6 +52,8 @@ static int ImageList_AddIconFromIconLib(HIMAGELIST hIml, int i)
class CMissingPLuginsDlg : public CDlgBase
{
+ typedef CDlgBase CSuper;
+
bool m_bFillingList = false;
CMStringW m_wszFilter;
OBJLIST<FILEINFO> *todo;
@@ -102,7 +104,7 @@ class CMissingPLuginsDlg : public CDlgBase
public:
CMissingPLuginsDlg(OBJLIST<FILEINFO> *param) :
- CDlgBase(g_plugin, IDD_MISSINGPLUGINS),
+ CSuper(g_plugin, IDD_MISSINGPLUGINS),
todo(param),
btnOk(this, IDOK),
btnNone(this, IDC_SELNONE),
@@ -209,6 +211,15 @@ public:
return RD_ANCHORX_LEFT | RD_ANCHORY_TOP | RD_ANCHORX_WIDTH | RD_ANCHORY_HEIGHT;
}
+ void OnResize() override
+ {
+ CSuper::OnResize();
+
+ RECT rc;
+ GetClientRect(m_list.GetHeader(), &rc);
+ m_list.SetColumnWidth(0, rc.right - rc.left - m_list.GetColumnWidth(1));
+ }
+
void onClick_List(CCtrlListView::TEventInfo *ev)
{
LVHITTESTINFO hi;