aboutsummaryrefslogtreecommitdiff
path: root/c/main.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-02-15 17:17:50 +0100
committerJohn Ankarström <john@ankarstrom.se>2022-02-15 17:17:50 +0100
commitc1eee2b46cd5643ba8efb98b2cd598ef47c4daf6 (patch)
treecd23129ac6476d5be4814687248e3e71c0d959c9 /c/main.c
parentc605ea0545ac22dc328c83d78011e3d18346eb63 (diff)
downloadEpisodeBrowser-c1eee2b46cd5643ba8efb98b2cd598ef47c4daf6.tar.gz
Show data in data list view.
Diffstat (limited to 'c/main.c')
-rw-r--r--c/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/c/main.c b/c/main.c
index 40c25b4..045d31c 100644
--- a/c/main.c
+++ b/c/main.c
@@ -207,7 +207,7 @@ void
UpdateLayout(HWND hWnd)
{
HWND hElv, hDlv;
- int cxColumn;
+ int cxColumn, cyDlv;
RECT rc;
static int cxVScroll = 0;
extern int g_SelectedItem;
@@ -222,7 +222,8 @@ UpdateLayout(HWND hWnd)
/* Resize data list view. */
hDlv = GetDlgItem(hWnd, IDC_DATALISTVIEW);
- MoveWindow(hDlv, 0, rc.bottom-100,
+ cyDlv = rc.bottom-100;
+ MoveWindow(hDlv, 0, cyDlv,
rc.right, rc.bottom,
TRUE);
@@ -234,7 +235,7 @@ UpdateLayout(HWND hWnd)
hElv = GetDlgItem(hWnd, IDC_EPISODELISTVIEW);
MoveWindow(hElv, 0, 0,
- rc.right, rc.bottom-100+1,
+ rc.right, cyDlv+1,
TRUE);
cxColumn = ListView_GetColumnWidth(hElv, 0);