1 /* Unit test suite for resources.
3 * Copyright 2004 Ferenc Wagner
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
25 "^N", 1000 /* Ctrl+'N' */
26 "N", 1001 /* Shift+'n' */
32 78, 1000, VIRTKEY, CONTROL /* Ctrl+'N' */
33 78, 1001, ASCII /* 'N' */
34 110, 1002, ASCII /* 'n' */
35 78, 1003, VIRTKEY, ALT /* Alt+'N' */
36 78, 1004, VIRTKEY, CONTROL, SHIFT /* Ctrl+Shift+'N' */
37 78, 1005, VIRTKEY, CONTROL, ALT, SHIFT /* Ctrl+Alt+Shift+'N' */
43 1 "Another string resource"
44 2 L"This is a wide string resource"
48 TEST_DIALOG DIALOG DISCARDABLE 0, 0, 60, 30
49 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
51 FONT 8, "MS Shell Dlg"
53 DEFPUSHBUTTON "OK", IDOK,4,4,50,14, WS_TABSTOP | WS_GROUP
56 RADIO_TEST_DIALOG DIALOGEX 0, 0, 160, 80
57 STYLE DS_SETFONT | DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
58 CAPTION "Radio Button Test Dialog"
59 FONT 8, "MS Shell Dlg"
61 GROUPBOX "Static", 100,6,5,92,70
62 CONTROL "Radio1", 200,"Button",BS_AUTORADIOBUTTON |
63 WS_GROUP | WS_TABSTOP,17,27,39,10
64 CONTROL "Radio2", 201,"Button",BS_AUTORADIOBUTTON,17,40,39,10
65 PUSHBUTTON "Cancel", IDCANCEL,109,20,50,14, WS_TABSTOP | WS_GROUP
68 CLASS_TEST_DIALOG DIALOG DISCARDABLE 0, 0, 91, 28
69 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
70 CAPTION "CreateDialogParams Test"
72 FONT 8, "MS Shell Dlg"
76 CLASS_TEST_DIALOG_2 DIALOG DISCARDABLE 0, 0, 100, 100
77 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
78 CAPTION "CreateDialogParams Test"
80 FONT 8, "MS Shell Dlg"
84 FOCUS_TEST_DIALOG DIALOG DISCARDABLE 0, 0, 60, 30
85 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | DS_CONTROL
87 FONT 8, "MS Shell Dlg"
89 EDITTEXT 200,4,4,50,14
92 IDD_DIALOG DIALOG DISCARDABLE 0, 0, 186, 95
93 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
95 FONT 8, "MS Sans Serif"
97 DEFPUSHBUTTON "OK",IDOK,129,7,50,14
98 PUSHBUTTON "Cancel",IDCANCEL,129,24,50,14
101 TEST_EMPTY_DIALOG DIALOG DISCARDABLE 0, 0, 186, 95
102 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
104 FONT 8, "MS Sans Serif"
108 MULTI_EDIT_DIALOG DIALOG DISCARDABLE 0, 0, 160, 75
109 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | DS_CENTER
110 CAPTION "Multiple Edit Test"
111 FONT 8, "MS Shell Dlg"
113 EDITTEXT 1000, 5, 5, 150, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP | ES_MULTILINE | ES_WANTRETURN
114 EDITTEXT 1001, 5, 25, 150, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
115 EDITTEXT 1002, 5, 45, 150, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
118 EDIT_DIALOG DIALOG DISCARDABLE 0, 0, 160, 80
119 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | DS_CENTER
121 FONT 8, "MS Shell Dlg"
123 PUSHBUTTON "Ok", IDOK, 20, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
124 PUSHBUTTON "Cancel", IDCANCEL, 100, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
125 EDITTEXT 1000, 5, 5, 150, 50, WS_CHILD | WS_VISIBLE | WS_TABSTOP | ES_MULTILINE | WS_VSCROLL | ES_AUTOVSCROLL
128 EDIT_SINGLELINE_DIALOG DIALOG DISCARDABLE 0, 0, 160, 80
129 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | DS_CENTER
131 FONT 8, "MS Shell Dlg"
133 PUSHBUTTON "Ok", IDOK, 20, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
134 PUSHBUTTON "Cancel", IDCANCEL, 100, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
135 EDITTEXT 1000, 5, 5, 150, 50, WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL | ES_AUTOVSCROLL
138 EDIT_SINGLELINE_WANTRETURN_DIALOG DIALOG DISCARDABLE 0, 0, 160, 80
139 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | DS_CENTER
141 FONT 8, "MS Shell Dlg"
143 PUSHBUTTON "Ok", IDOK, 20, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
144 PUSHBUTTON "Cancel", IDCANCEL, 100, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
145 EDITTEXT 1000, 5, 5, 150, 50, WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL | ES_AUTOVSCROLL | ES_WANTRETURN
148 EDIT_WANTRETURN_DIALOG DIALOG DISCARDABLE 0, 0, 160, 80
149 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | DS_CENTER
151 FONT 8, "MS Shell Dlg"
153 PUSHBUTTON "Ok", IDOK, 20, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
154 PUSHBUTTON "Cancel", IDCANCEL, 100, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
155 EDITTEXT 1000, 5, 5, 150, 50, WS_CHILD | WS_VISIBLE | WS_TABSTOP | ES_MULTILINE | WS_VSCROLL | ES_AUTOVSCROLL | ES_WANTRETURN
158 EDIT_READONLY_DIALOG DIALOG DISCARDABLE 0, 0, 160, 80
159 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | DS_CENTER
160 CAPTION "Edit Readonly Test"
161 FONT 8, "MS Shell Dlg"
163 PUSHBUTTON "Ok", IDOK, 20, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
164 PUSHBUTTON "Cancel", IDCANCEL, 100, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
165 EDITTEXT 1000, 5, 5, 150, 50, WS_CHILD | WS_VISIBLE | WS_TABSTOP | ES_MULTILINE | WS_VSCROLL | ES_AUTOVSCROLL | ES_READONLY
168 /* @makedep: test_mono.bmp */
169 100 BITMAP test_mono.bmp
177 MENUITEM "&New file", 100
179 MENUITEM "&Open", 101
180 MENUITEM "&Save", 102
182 MENUITEM "E&xit", 103
186 MENUITEM "&Undo", 200
189 MENUITEM "&Copy", 202
190 MENUITEM "&Paste", 203
191 MENUITEM "&Delete", 204