diff options
Diffstat (limited to 'c/main.c')
-rw-r--r-- | c/main.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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); |