aboutsummaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-25 00:04:49 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-25 00:04:49 +0200
commitaaebc0c072e515701162337d549ac964f63639be (patch)
tree639754635274f8acb972fa0a3fe949e32f3847a6 /c
parent66697360832da018ea0423dda32024a8819f294b (diff)
downloadEpisodeBrowser-aaebc0c072e515701162337d549ac964f63639be.tar.gz
Show menu item info in status bar.
Diffstat (limited to 'c')
-rw-r--r--c/main.cpp48
1 files changed, 48 insertions, 0 deletions
diff --git a/c/main.cpp b/c/main.cpp
index 8ab7b7d..64e6058 100644
--- a/c/main.cpp
+++ b/c/main.cpp
@@ -479,6 +479,54 @@ LRESULT CALLBACK WndProc(const HWND hWnd, const UINT uMsg, const WPARAM wParam,
}
}
break;
+ case WM_MENUSELECT:
+ switch (LOWORD(wParam)) {
+#define TIP(s) SendMessage(g_hWndStatus, SB_SETTEXT, MAKEWPARAM(0,0), (LPARAM)(s));
+#define OF(m, s) IDM_##m: TIP(TEXT(s)); break;
+ case OF(FILE_EXIT, "Close Episode Browser.");
+ case OF(FILE_REFRESH, "Quickly refresh episode list.");
+ case OF(FILE_FETCH_DATA, "Fetch episode data from the web (may take a few seconds).");
+ case OF(FILE_FETCH_SCREENWRITERS, "Fetch screenwriter data from the web (may take a minute).");
+ case OF(FILE_ABOUT, "Show information about Episode Browser.");
+ case OF(WATCH_LOCALLY, "Open local copy of episode, if available.");
+ case OF(WATCH_ONLINE, "Open episode in the web browser.");
+ case OF(TOGGLE, "Toggle watched/unwatched status.");
+ case OF(FORGET, "Reset watched/unwatched status.");
+ case OF(LOOKUP, "Fetch episode data from the web, such as date, source and hint.");
+ case OF(WIKI, "Show Detective Conan Wiki entry for episode.");
+ case OF(RATE10, "Rate episode 10/10.");
+ case OF(RATE9, "Rate episode 9/10.");
+ case OF(RATE8, "Rate episode 8/10.");
+ case OF(RATE7, "Rate episode 7/10.");
+ case OF(RATE6, "Rate episode 6/10.");
+ case OF(RATE5, "Rate episode 5/10.");
+ case OF(RATE4, "Rate episode 4/10.");
+ case OF(RATE3, "Rate episode 3/10.");
+ case OF(RATE2, "Rate episode 2/10.");
+ case OF(RATE1, "Rate episode 1/10.");
+ case OF(RATE0, "Remove episode rating.");
+ case IDM_VIEW_WATCHED:
+ TIP(g_bViewWatched?
+ TEXT("Click to hide watched episodes."):
+ TEXT("Click to show watched episodes."));
+ break;
+ case IDM_VIEW_TV_ORIGINAL:
+ TIP(g_bViewTVOriginal?
+ TEXT("Click to hide TV original episodes."):
+ TEXT("Click to show TV original episodes."));
+ break;
+ case IDM_VIEW_OTHERS:
+ TIP(g_szLimitScreenwriter?
+ TEXT("Click to hide episodes by other screenwriters."):
+ TEXT("Click to show episodes by other screenwriters."));
+ break;
+ default:
+ TIP(TEXT(""));
+ break;
+#undef OF
+#undef TIP
+ }
+ break;
default:
return DefWindowProc(hWnd, uMsg, wParam, lParam);
}