diff options
Diffstat (limited to 'c/main.c')
-rw-r--r-- | c/main.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -450,22 +450,22 @@ UpdateLayout() /* Resize data list view. */ SendMessage(HDlv, WM_SETREDRAW, FALSE, 0); - cyDlv = rc.bottom-yStatus-LvHeight(HDlv, 0); + cyDlv = rc.bottom-yStatus-LvHeight(HDlv, DLVSIKEY); MoveWindow(HDlv, 0, cyDlv, rc.right, rc.bottom-yStatus-cyDlv, TRUE); - ListView_SetColumnWidth(HDlv, 0, LVSCW_AUTOSIZE); + ListView_SetColumnWidth(HDlv, DLVSIKEY, LVSCW_AUTOSIZE); cxColumn = ListView_GetColumnWidth(HDlv, 0)+4; - ListView_SetColumnWidth(HDlv, 0, cxColumn); - ListView_SetColumnWidth(HDlv, 1, rc.right-cxColumn-CxVScroll-4); + ListView_SetColumnWidth(HDlv, DLVSIKEY, cxColumn); + ListView_SetColumnWidth(HDlv, DLVSIVALUE, rc.right-cxColumn-CxVScroll-4); SendMessage(HDlv, WM_SETREDRAW, TRUE, 0); /* Resize episode list view. */ SendMessage(HElv, WM_SETREDRAW, FALSE, 0); MoveWindow(HElv, 0, 0, rc.right, cyDlv+1, TRUE); - ListView_SetColumnWidth(HElv, 0, LVSCW_AUTOSIZE); - cxColumn = ListView_GetColumnWidth(HElv, 0)+4; - ListView_SetColumnWidth(HElv, 0, cxColumn); - cxColumn += ListView_GetColumnWidth(HElv, 1); - ListView_SetColumnWidth(HElv, 2, rc.right-cxColumn-CxVScroll-4); + ListView_SetColumnWidth(HElv, ELVSIEPISODE, LVSCW_AUTOSIZE); + cxColumn = ListView_GetColumnWidth(HElv, ELVSIEPISODE)+4; + ListView_SetColumnWidth(HElv, ELVSIEPISODE, cxColumn); + cxColumn += ListView_GetColumnWidth(HElv, ELVSIRATING); + ListView_SetColumnWidth(HElv, ELVSITITLE, rc.right-cxColumn-CxVScroll-4); SendMessage(HElv, WM_SETREDRAW, TRUE, 0); /* Resize status bar parts. */ |