aboutsummaryrefslogtreecommitdiff
path: root/c/main.c
diff options
context:
space:
mode:
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. */
{