commit 6a0bad30f5c64fb4a9817dd80b749baabf6d9ed1
parent fe398709dac1545c4df8c06bc43f875fc1ef5cd5
Author: cfillion <cfillion@users.noreply.github.com>
Date: Thu, 27 Oct 2016 20:07:55 -0400
manager: make the window user-resizable [#10]
Diffstat:
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/manager.cpp b/src/manager.cpp
@@ -58,6 +58,14 @@ void Manager::onInit()
m_list->onContextMenu(bind(&Manager::fillContextMenu,
this, placeholders::_1, placeholders::_2));
+ setAnchor(m_list->handle(), AnchorRight | AnchorBottom);
+ setAnchor(getControl(IDC_IMPORT), AnchorTop | AnchorBottom);
+ setAnchor(getControl(IDC_BROWSE), AnchorTop | AnchorBottom);
+ setAnchor(getControl(IDC_OPTIONS), AnchorTop | AnchorBottom);
+ setAnchor(getControl(IDOK), AnchorAll);
+ setAnchor(getControl(IDCANCEL), AnchorAll);
+ setAnchor(m_apply, AnchorAll);
+
refresh();
m_list->autoSizeHeader();
diff --git a/src/resource.rc b/src/resource.rc
@@ -26,7 +26,7 @@ BEGIN
END
IDD_CONFIG_DIALOG DIALOGEX 0, 0, 370, 210
-STYLE DIALOG_STYLE
+STYLE DIALOG_STYLE | WS_THICKFRAME
FONT DIALOG_FONT
CAPTION "ReaPack Configuration"
BEGIN