-
Notifications
You must be signed in to change notification settings - Fork 0
/
winemine.rc
118 lines (104 loc) · 3.93 KB
/
winemine.rc
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/*
* WineMine (rsrc.rc)
*
* Copyright 2000 Joshua Thielen
* Copyright 2003 Marcelo Duarte
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "windows.h"
#include "winemres.h"
/*LANGUAGE LANG_NEUTRAL,SUBLANG_NEUTRAL*/
IDA_WINEMINE ACCELERATORS
{
// VK_F1, IDM_NEW, VIRTKEY
VK_F2, IDM_NEW, VIRTKEY
"X", IDM_EXIT
}
/* @makedep: winemine.ico */
WINEMINE ICON "rc/winemine.ico"
/* @makedep: faces.bmp */
FACES BITMAP "rc/faces.bmp"
/* @makedep: leds.bmp */
LEDS BITMAP "rc/leds.bmp"
/* @makedep: mines.bmp */
MINES BITMAP "rc/mines.bmp"
STRINGTABLE BEGIN
IDS_APPNAME, "Minesweeper"
IDS_NOBODY, "Nobody"
IDS_ABOUT, "Copyright 2000 Joshua Thielen"
END
MENU_WINEMINE MENU
BEGIN
POPUP "&Game" BEGIN
MENUITEM "&New\tF2", IDM_NEW
MENUITEM SEPARATOR
MENUITEM "&Beginner", IDM_BEGINNER
MENUITEM "&Intermediate", IDM_ADVANCED
MENUITEM "&Expert", IDM_EXPERT
MENUITEM "&Custom...", IDM_CUSTOM
MENUITEM SEPARATOR
MENUITEM "&Marks (?)", IDM_MARKQ
// MENUITEM "Color", IDM_COLOR
MENUITEM SEPARATOR
MENUITEM "Best &Times...", IDM_TIMES
MENUITEM SEPARATOR
MENUITEM "E&xit\tAlt+X", IDM_EXIT
END
POPUP "&Help" BEGIN
// MENUITEM "&Contents\tF1", IDM_TIMES
// MENUITEM "&Search for Help On...", IDM_TIMES
// MENUITEM "&How to Use Help", IDM_TIMES
// MENUITEM SEPARATOR
MENUITEM "&About Minesweeper...", IDM_ABOUT
END
END
DLG_TIMES DIALOG 0, 0, 160, 80
STYLE WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_POPUP
CAPTION "Best Times"
BEGIN
GROUPBOX "Best Times", -1, 10, 10, 140, 45
LTEXT "Beginner", -1, 20, 20, 40, 8
LTEXT "Advanced", -1, 20, 30, 40, 8
LTEXT "Expert", -1, 20, 40, 40, 8
LTEXT "999", IDC_TIME1, 70, 20, 15, 8
LTEXT "999", IDC_TIME2, 70, 30, 15, 8
LTEXT "999", IDC_TIME3, 70, 40, 15, 8
LTEXT "", IDC_NAME1, 90, 20, 55, 8
LTEXT "", IDC_NAME2, 90, 30, 55, 8
LTEXT "", IDC_NAME3, 90, 40, 55, 8
DEFPUSHBUTTON "OK", IDOK, 55, 60, 50, 15
END
DLG_CONGRATS DIALOG 0, 0, 160, 60
STYLE WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_POPUP
CAPTION "Congratulations!"
BEGIN
LTEXT "Please enter your name", -1, 10, 10, 150, 10
EDITTEXT IDC_EDITNAME, 25, 20, 110, 12
DEFPUSHBUTTON "OK", IDOK, 60, 40, 40, 15
END
DLG_CUSTOM DIALOG 0, 0, 100, 100
STYLE WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_POPUP
CAPTION "Custom Game"
BEGIN
LTEXT "Rows", -1, 5, 5, 30, 10
LTEXT "Cols", -1, 5, 35, 30, 10
LTEXT "Mines", -1, 5, 65, 30, 10
EDITTEXT IDC_EDITROWS, 5, 15, 20, 12
EDITTEXT IDC_EDITCOLS, 5, 45, 20, 12
EDITTEXT IDC_EDITMINES, 5, 75, 20, 12
DEFPUSHBUTTON "OK", IDOK, 40, 30, 50, 15
PUSHBUTTON "Cancel", IDCANCEL, 40, 50, 50, 15
END