From 1561f2500fd3f5c2b7d76d8cdf452ea41a56d479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 30 Jul 2022 16:02:54 +0200 Subject: Show dynamic status bar tips. The difference in speed seems to be extremely minimal: a few microseconds. --- c/main.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'c/main.cpp') 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.", -- cgit v1.2.3