aboutsummaryrefslogtreecommitdiff
path: root/c/resource.rc
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-02-15 15:38:57 +0100
committerJohn Ankarström <john@ankarstrom.se>2022-02-15 15:38:57 +0100
commit09ec144a99f1234a37d04854bdfb81485540be97 (patch)
treece3050a062a76dd12980b08ef36eb7ac35b7e6f8 /c/resource.rc
parentfed19b9942575e7c0360a0d77a3c544afdbaeb6c (diff)
downloadEpisodeBrowser-09ec144a99f1234a37d04854bdfb81485540be97.tar.gz
Put C code and Prolog code in separate directories.
Diffstat (limited to 'c/resource.rc')
-rw-r--r--c/resource.rc33
1 files changed, 33 insertions, 0 deletions
diff --git a/c/resource.rc b/c/resource.rc
new file mode 100644
index 0000000..36fa014
--- /dev/null
+++ b/c/resource.rc
@@ -0,0 +1,33 @@
+#include <windows.h>
+#include "resource.h"
+
+CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "episode_browser.manifest"
+
+IDR_MENU MENU
+BEGIN
+ POPUP "&File"
+ BEGIN
+ MENUITEM "&Refresh", ID_FILE_REFRESH
+ MENUITEM "&Exit", ID_FILE_EXIT
+ END
+ POPUP "&Help"
+ BEGIN
+ MENUITEM "&About", ID_FILE_ABOUT
+ END
+END
+
+#define PAD 7
+#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-PAD, ABOUTH-OKH-PAD, OKW, OKH
+ LTEXT TEXT("Episode Browser\r\nCopyright 2021 John Ankarström"),
+ IDC_ABOUTTEXT, PAD, PAD, ABOUTW-OKW-PAD*2, ABOUTH-PAD
+END \ No newline at end of file