diff options
author | John Ankarström <john@ankarstrom.se> | 2022-04-06 22:53:27 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-04-06 22:53:27 +0200 |
commit | 750fd640b56e169caafdbb96bef0c3c3af3dba1f (patch) | |
tree | 419adda8a8f5964c8c6642ea387c8c967fd01bd6 /c/main.c | |
parent | 4d6cbcdc97fd79befca82ed9ddc0d96ce86f744f (diff) | |
download | EpisodeBrowser-750fd640b56e169caafdbb96bef0c3c3af3dba1f.tar.gz |
Add View > Watched Episodes menu item.
Diffstat (limited to 'c/main.c')
-rw-r--r-- | c/main.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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: |