aboutsummaryrefslogtreecommitdiff
path: root/c/main.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-05-28 00:55:08 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-05-28 00:55:08 +0200
commit11a330a7fc93506a44e0b14dd1ad10f7fa4a2104 (patch)
treed987b8776dae4e83b2da85ab623937d7a97e6760 /c/main.c
parentb1b296dbd1b36c0033ffc8aff832e7b2ff49c5cc (diff)
downloadEpisodeBrowser-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.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/c/main.c b/c/main.c
index c4482c5..f312206 100644
--- a/c/main.c
+++ b/c/main.c
@@ -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. */
{