1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
#include <windows.h>
#include "res.h"
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "application.manifest"
IDR_MENU MENU
BEGIN
POPUP "&File"
BEGIN
POPUP "&Fetch"
BEGIN
MENUITEM "&General Data", IDM_FILE_FETCH_DATA
MENUITEM "&Screenwriters", IDM_FILE_FETCH_SCREENWRITERS
MENUITEM "&Cancel", IDM_FILE_FETCH_CANCEL, GRAYED
END
MENUITEM "&Refresh", IDM_FILE_REFRESH
MENUITEM "&Preferences...", IDM_FILE_PREFERENCES
MENUITEM "E&xit", IDM_FILE_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "&Watched", IDM_VIEW_WATCHED, CHECKED
MENUITEM "&TV Originals", IDM_VIEW_TV_ORIGINAL, CHECKED
MENUITEM "Other &Screenwriters", IDM_VIEW_OTHERS, CHECKED
END
POPUP "&Help"
BEGIN
MENUITEM "&About", IDM_FILE_ABOUT
END
END
IDR_POPUPMENU MENU DISCARDABLE
BEGIN
POPUP "Episode Menu"
BEGIN
MENUITEM "&Watch Locally", IDM_WATCH_LOCALLY
MENUITEM "Watch &Online", IDM_WATCH_ONLINE
MENUITEM "&Toggle", IDM_TOGGLE
MENUITEM "Wi&ki", IDM_WIKI
POPUP "&Rate"
BEGIN
MENUITEM "&10", IDM_RATE10
MENUITEM "&9", IDM_RATE9
MENUITEM "&8", IDM_RATE8
MENUITEM "&7", IDM_RATE7
MENUITEM "&6", IDM_RATE6
MENUITEM "&5", IDM_RATE5
MENUITEM "&4", IDM_RATE4
MENUITEM "&3", IDM_RATE3
MENUITEM "&2", IDM_RATE2
MENUITEM "&1", IDM_RATE1
MENUITEM "&-", IDM_RATE0
END
END
END
#define VPAD 7
#define HPAD 9
#define ABOUTW 190
#define ABOUTH 40
#define OKW 48
#define OKH 16
IDD_ABOUT DIALOGEX DISCARDABLE 20, 20, ABOUTW, ABOUTH
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About"
FONT 8, "MS Shell Dlg 2"
BEGIN
DEFPUSHBUTTON "&OK", IDOK, ABOUTW-OKW-HPAD, ABOUTH-OKH-VPAD, OKW, OKH
LTEXT "Episode Browser\r\nCopyright 2021 John Ankarström",
IDC_ABOUTTEXT, HPAD, VPAD, ABOUTW-OKW-HPAD-HPAD, ABOUTH-VPAD
END
IDD_PREFERENCES DIALOGEX 20, 20, 256, 137
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_CONTEXTHELP
CAPTION "Preferences"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
DEFPUSHBUTTON "OK",IDOK,145,116,50,14
PUSHBUTTON "Cancel",IDCANCEL,199,116,50,14
EDITTEXT IDC_EDIT_ROOT,14,18,172,14,ES_AUTOHSCROLL,WS_EX_ACCEPTFILES
PUSHBUTTON "Browse...",IDC_BROWSE,191,18,50,14
GROUPBOX "Root directory for local episode lookup",IDC_STATIC,7,7,242,32
EDITTEXT IDC_EDIT_URL,14,54,227,14,ES_AUTOHSCROLL
GROUPBOX "URL for online episode lookup",IDC_STATIC,7,42,242,32
EDITTEXT IDC_EDIT_PREFIX,14,90,227,14,ES_AUTOHSCROLL
GROUPBOX "Prefix for internal internet requests (for Windows XP compatibility)",IDC_STATIC,7,79,242,32
END
|