diff options
author | John Ankarström <john@ankarstrom.se> | 2022-05-28 00:55:08 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-05-28 00:55:08 +0200 |
commit | 11a330a7fc93506a44e0b14dd1ad10f7fa4a2104 (patch) | |
tree | d987b8776dae4e83b2da85ab623937d7a97e6760 /c/main.c | |
parent | b1b296dbd1b36c0033ffc8aff832e7b2ff49c5cc (diff) | |
download | EpisodeBrowser-11a330a7fc93506a44e0b14dd1ad10f7fa4a2104.tar.gz |
Add "Fetch Screenwriters" menu item.
This is a separate item from "Fetch", because it takes a lot longer.
Diffstat (limited to 'c/main.c')
-rw-r--r-- | c/main.c | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -216,7 +216,15 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { term_t t; t = T(0); - P("episode_data","fetch_episode_data",0,t); + P("episode_data","update_episode_data",0,t); + ElvUpdate(); + break; + } + case IDM_FILE_SCREENWRITERS: + { + term_t t; + t = T(0); + P("episode_data","update_screenwriters",0,t); ElvUpdate(); break; } @@ -465,16 +473,15 @@ UpdateLayout() /* Resize data list view. */ SendMessage(HDlv, WM_SETREDRAW, FALSE, 0); + SendMessage(HElv, WM_SETREDRAW, FALSE, 0); cyDlv = rc.bottom-yStatus-LvHeight(HDlv, DLVSIKEY); MoveWindow(HDlv, 0, cyDlv, rc.right, rc.bottom-yStatus-cyDlv, TRUE); ListView_SetColumnWidth(HDlv, DLVSIKEY, LVSCW_AUTOSIZE); cxColumn = ListView_GetColumnWidth(HDlv, 0)+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, ELVSIEPISODE, LVSCW_AUTOSIZE); cxColumn = ListView_GetColumnWidth(HElv, ELVSIEPISODE)+4; @@ -482,6 +489,7 @@ UpdateLayout() cxColumn += ListView_GetColumnWidth(HElv, ELVSIRATING); ListView_SetColumnWidth(HElv, ELVSITITLE, rc.right-cxColumn-CxVScroll-4); SendMessage(HElv, WM_SETREDRAW, TRUE, 0); + SendMessage(HDlv, WM_SETREDRAW, TRUE, 0); /* Resize status bar parts. */ { |