diff options
author | John Ankarström <john@ankarstrom.se> | 2022-05-29 00:21:48 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-05-29 00:21:48 +0200 |
commit | 6fbb54d91b78cd0f89196ea091ad786469396692 (patch) | |
tree | dda863c45429259a5547f0c84e2fda4edf087e42 /c | |
parent | 2355ab8c49b91d3d0797408d72d627870bcdd896 (diff) | |
download | EpisodeBrowser-6fbb54d91b78cd0f89196ea091ad786469396692.tar.gz |
Add Wiki context menu option.
It opens the Detective Conan World wiki page for the
focused episode.
Diffstat (limited to 'c')
-rw-r--r-- | c/main.c | 4 | ||||
-rw-r--r-- | c/resource.h | 1 | ||||
-rw-r--r-- | c/resource.rc | 1 |
3 files changed, 6 insertions, 0 deletions
@@ -327,6 +327,7 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) case IDM_TOGGLE: case IDM_FORGET: case IDM_LOOKUP: + case IDM_WIKI: case IDM_RATE10: case IDM_RATE9: case IDM_RATE8: @@ -373,6 +374,9 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) ElvRedraw(); DlvShowEpisode(lvi.lParam); break; + case IDM_WIKI: + P("episode_data","open_episode_wiki",1,t); + break; case IDM_RATE10: PI(t+1,10) break; goto r; diff --git a/c/resource.h b/c/resource.h index 375de8b..6d4c090 100644 --- a/c/resource.h +++ b/c/resource.h @@ -21,6 +21,7 @@ #define IDM_TOGGLE 502 #define IDM_FORGET 503 #define IDM_LOOKUP 504 +#define IDM_WIKI 505 #define IDM_RATE10 525 #define IDM_RATE9 526 #define IDM_RATE8 527 diff --git a/c/resource.rc b/c/resource.rc index 1811634..c6e1246 100644 --- a/c/resource.rc +++ b/c/resource.rc @@ -33,6 +33,7 @@ BEGIN MENUITEM "&Toggle", IDM_TOGGLE MENUITEM "&Forget", IDM_FORGET MENUITEM "&Lookup", IDM_LOOKUP + MENUITEM "Wi&ki", IDM_WIKI POPUP "&Rate" BEGIN MENUITEM "&10", IDM_RATE10 |