aboutsummaryrefslogtreecommitdiff
path: root/c/main.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-02-17 14:37:26 +0100
committerJohn Ankarström <john@ankarstrom.se>2022-02-17 14:37:26 +0100
commit8b450d317275072c10da567ac991e170d78cb320 (patch)
treee98f25b399f859ea45fe916a97699cfa8ba246de /c/main.c
parent812d23eeb24c2b4502e338770df36072c5b1fa53 (diff)
downloadEpisodeBrowser-8b450d317275072c10da567ac991e170d78cb320.tar.gz
Update tracked episodes upon window activation.
Diffstat (limited to 'c/main.c')
-rw-r--r--c/main.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/c/main.c b/c/main.c
index c6364e8..1ef714c 100644
--- a/c/main.c
+++ b/c/main.c
@@ -91,13 +91,24 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_DESTROY:
PostQuitMessage(0);
break;
+ case WM_SIZE:
+ UpdateLayout(hWnd);
+ break;
case WM_CREATE:
HWnd = hWnd;
DlvCreate();
ElvCreate();
break;
- case WM_SIZE:
- UpdateLayout(hWnd);
+ case WM_ACTIVATE:
+ if (wParam != WA_INACTIVE) {
+ fid_t f;
+ term_t t;
+ F(f);
+ t = T(0);
+ P("track_episodes","update_tracked_episodes",0,t);
+ ElvRedraw();
+ Fd(f);
+ }
break;
case WM_NOTIFY:
switch (((LPNMHDR)lParam)->idFrom) {