diff options
Diffstat (limited to 'c/main.cpp')
-rw-r--r-- | c/main.cpp | 48 |
1 files changed, 48 insertions, 0 deletions
@@ -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); } |