aboutsummaryrefslogtreecommitdiff
path: root/c/main.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-04-06 22:53:27 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-04-06 22:53:27 +0200
commit750fd640b56e169caafdbb96bef0c3c3af3dba1f (patch)
tree419adda8a8f5964c8c6642ea387c8c967fd01bd6 /c/main.c
parent4d6cbcdc97fd79befca82ed9ddc0d96ce86f744f (diff)
downloadEpisodeBrowser-750fd640b56e169caafdbb96bef0c3c3af3dba1f.tar.gz
Add View > Watched Episodes menu item.
Diffstat (limited to 'c/main.c')
-rw-r--r--c/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/c/main.c b/c/main.c
index a03e7b5..fcb8d81 100644
--- a/c/main.c
+++ b/c/main.c
@@ -11,6 +11,7 @@ HFONT HfBold;
HMENU HPopupMenu;
HWND HFocus;
HWND HWnd;
+int BViewWatched = 1;
int IDPI = -1;
static int BThemes;
static int CxVScroll;
@@ -198,6 +199,15 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
AboutDlgProc
);
break;
+ case ID_VIEW_WATCHED:
+ {
+ HMENU hMenu;
+ hMenu = GetMenu(hWnd);
+ CheckMenuItem(hMenu, ID_VIEW_WATCHED, BViewWatched? MF_UNCHECKED: MF_CHECKED);
+ BViewWatched = !BViewWatched;
+ ElvUpdate();
+ break;
+ }
case ID_WATCH:
case ID_TOGGLE:
case ID_FORGET: