aboutsummaryrefslogtreecommitdiff
path: root/c/datalistview.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-02 20:10:35 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-02 20:10:35 +0200
commitae3225a4e7ef86d159fdf27834c453ffcd4da76c (patch)
treef52129b946fdebfee8ffd88bc2b90347786e6e0e /c/datalistview.cpp
parent288f4c294ac1be89b151a3f96eb9d5cb9d91055f (diff)
downloadEpisodeBrowser-ae3225a4e7ef86d159fdf27834c453ffcd4da76c.tar.gz
Implement draggable split.
Next step is to allow a double click to reset the split to be automatically resized.
Diffstat (limited to 'c/datalistview.cpp')
-rw-r--r--c/datalistview.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/c/datalistview.cpp b/c/datalistview.cpp
index dd59250..ecaa76f 100644
--- a/c/datalistview.cpp
+++ b/c/datalistview.cpp
@@ -9,7 +9,7 @@
#include "datalistview.h"
#include "episodelistview.h"
#include "listview.h"
-#include "main.h"
+#include "layout.h"
#include "pl.h"
DataListView::DataListView(const HWND hWndParent)
@@ -30,6 +30,11 @@ DataListView::DataListView(const HWND hWndParent)
ListView_InsertColumn(hWnd, DLVSIVALUE, &lvc);
}
+int DataListView::Height(int bHeader)
+{
+ return m_height? m_height: ListView::Height(bHeader);
+}
+
void DataListView::ResizeColumns(int w)
{
ListView_SetColumnWidth(hWnd, DLVSIKEY, LVSCW_AUTOSIZE);
@@ -38,6 +43,11 @@ void DataListView::ResizeColumns(int w)
ListView_SetColumnWidth(hWnd, DLVSIVALUE, w-cxColumn-Metric<SM_CXVSCROLL>-Dpi(4));
}
+void DataListView::SetHeight(int h)
+{
+ m_height = h;
+}
+
void DataListView::ShowEpisode(const int iEpisode)
{
extern EpisodeListView* const g_elv;