aboutsummaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-30 16:02:54 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-30 16:02:54 +0200
commit1561f2500fd3f5c2b7d76d8cdf452ea41a56d479 (patch)
treebe292833414eebbd003e4f056c4c3923c1644ff4 /c
parentebabd34385feb629b759216c1f7d85edc20bf2fd (diff)
downloadEpisodeBrowser-1561f2500fd3f5c2b7d76d8cdf452ea41a56d479.tar.gz
Show dynamic status bar tips.
The difference in speed seems to be extremely minimal: a few microseconds.
Diffstat (limited to 'c')
-rw-r--r--c/main.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/c/main.cpp b/c/main.cpp
index 2edc6ec..984eb6b 100644
--- a/c/main.cpp
+++ b/c/main.cpp
@@ -286,17 +286,23 @@ LRESULT CALLBACK WndProc(const HWND hWnd, const UINT uMsg, const WPARAM wParam,
* strings are stored in arrays, whose indices
* correspond to the IDM_ values (see resource.h). */
- static const wchar_t* aWszMenu[] = {
+ const wchar_t* aWszMenu[] = {
/*IDM_FILE_EXIT*/L"Close Episode Browser.",
/*IDM_FILE_REFRESH*/L"Quickly refresh episode list.",
/*IDM_FILE_FETCH_DATA*/L"Fetch episode data from the web (may take a few seconds).",
/*IDM_FILE_FETCH_SCREENWRITERS*/L"Fetch screenwriters from the web (may take a minute).",
/*IDM_FILE_ABOUT*/L"Show information about Episode Browser.",
- /*IDM_VIEW_WATCHED*/L"Show/hide watched episodes.",
- /*IDM_VIEW_TV_ORIGINAL*/L"Show/hide TV original episodes.",
- /*IDM_VIEW_OTHERS*/L"Show/hide episodes by other screenwriters."
+ /*IDM_VIEW_WATCHED*/(g_bViewWatched?
+ L"Click to hide watched episodes.":
+ L"Click to show watched episodes."),
+ /*IDM_VIEW_TV_ORIGINAL*/(g_bViewTVOriginal?
+ L"Click to hide TV original episodes.":
+ L"Click to show TV original episodes."),
+ /*IDM_VIEW_OTHERS*/(g_szLimitScreenwriter?
+ L"Click to hide episodes by other screenwriters.":
+ L"Click to show episodes by other screenwriters.")
};
- static const wchar_t* aWszCtx[] = {
+ const wchar_t* aWszCtx[] = {
/*IDM_WATCH_LOCALLY*/L"Open local copy of episode, if available.",
/*IDM_WATCH_ONLINE*/L"Open episode in the web browser.",
/*IDM_TOGGLE*/L"Toggle watched/unwatched status.",