aboutsummaryrefslogtreecommitdiff
path: root/c/datalistview.cpp
diff options
context:
space:
mode:
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;