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 with a mixed style WS_CHILD | WS_POPUP control */
49 TEST_DLG_CHILD_POPUP DIALOG 0, 0, 60, 30
50 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
51 CAPTION "Test dialog with mixed style controls"
52 FONT 8, "MS Shell Dlg"
54 CONTROL "bump7",7,"static",WS_CHILD|WS_POPUP|WS_BORDER,0,0,40,10,WS_EX_TRANSPARENT
55 CONTROL "bump8",8,"static",WS_POPUP,0,10,40,10,WS_EX_TRANSPARENT
58 TEST_DIALOG DIALOG 0, 0, 60, 30
59 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
61 FONT 8, "MS Shell Dlg"
63 DEFPUSHBUTTON "OK", IDOK,4,4,50,14, WS_TABSTOP | WS_GROUP
66 RADIO_TEST_DIALOG DIALOGEX 0, 0, 160, 80
67 STYLE DS_SETFONT | DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
68 CAPTION "Radio Button Test Dialog"
69 FONT 8, "MS Shell Dlg"
71 GROUPBOX "Static", 100,6,5,92,70
72 CONTROL "Radio1", 200,"Button",BS_AUTORADIOBUTTON |
73 WS_GROUP | WS_TABSTOP,17,27,39,10
74 CONTROL "Radio2", 201,"Button",BS_AUTORADIOBUTTON,17,40,39,10
75 PUSHBUTTON "Cancel", IDCANCEL,109,20,50,14, WS_TABSTOP | WS_GROUP
78 CLASS_TEST_DIALOG DIALOG 0, 0, 91, 28
79 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
80 CAPTION "CreateDialogParams Test"
82 FONT 8, "MS Shell Dlg"
86 CLASS_TEST_DIALOG_2 DIALOG 0, 0, 100, 100
87 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
88 CAPTION "CreateDialogParams Test"
90 FONT 8, "MS Shell Dlg"
94 FOCUS_TEST_DIALOG DIALOG 0, 0, 60, 30
95 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | DS_CONTROL
97 FONT 8, "MS Shell Dlg"
99 EDITTEXT 200,4,4,50,14
102 FOCUS_TEST_DIALOG_2 DIALOG 0, 0, 60, 30
103 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
104 CAPTION "Test dialog"
105 FONT 8, "MS Shell Dlg"
107 LTEXT "Hello world", 200,4,4,50,14
110 IDD_DIALOG DIALOG 0, 0, 186, 95
111 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
113 FONT 8, "MS Sans Serif"
115 DEFPUSHBUTTON "OK",IDOK,129,7,50,14
116 PUSHBUTTON "Cancel",IDCANCEL,129,24,50,14
119 TEST_EMPTY_DIALOG DIALOG 0, 0, 186, 95
120 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
122 FONT 8, "MS Sans Serif"
126 MULTI_EDIT_DIALOG DIALOG 0, 0, 160, 75
127 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | DS_CENTER
128 CAPTION "Multiple Edit Test"
129 FONT 8, "MS Shell Dlg"
131 EDITTEXT 1000, 5, 5, 150, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP | ES_MULTILINE | ES_WANTRETURN
132 EDITTEXT 1001, 5, 25, 150, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
133 EDITTEXT 1002, 5, 45, 150, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
136 EDIT_DIALOG DIALOG 0, 0, 160, 80
137 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | DS_CENTER
139 FONT 8, "MS Shell Dlg"
141 PUSHBUTTON "OK", IDOK, 20, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
142 PUSHBUTTON "Cancel", IDCANCEL, 100, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
143 EDITTEXT 1000, 5, 5, 150, 50, WS_CHILD | WS_VISIBLE | WS_TABSTOP | ES_MULTILINE | WS_VSCROLL | ES_AUTOVSCROLL
146 EDIT_SINGLELINE_DIALOG DIALOG 0, 0, 160, 80
147 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | DS_CENTER
149 FONT 8, "MS Shell Dlg"
151 PUSHBUTTON "OK", IDOK, 20, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
152 PUSHBUTTON "Cancel", IDCANCEL, 100, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
153 EDITTEXT 1000, 5, 5, 150, 50, WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL | ES_AUTOVSCROLL
156 EDIT_SINGLELINE_WANTRETURN_DIALOG DIALOG 0, 0, 160, 80
157 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | DS_CENTER
159 FONT 8, "MS Shell Dlg"
161 PUSHBUTTON "OK", IDOK, 20, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
162 PUSHBUTTON "Cancel", IDCANCEL, 100, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
163 EDITTEXT 1000, 5, 5, 150, 50, WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL | ES_AUTOVSCROLL | ES_WANTRETURN
166 EDIT_WANTRETURN_DIALOG DIALOG 0, 0, 160, 80
167 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | DS_CENTER
169 FONT 8, "MS Shell Dlg"
171 PUSHBUTTON "OK", IDOK, 20, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
172 PUSHBUTTON "Cancel", IDCANCEL, 100, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
173 EDITTEXT 1000, 5, 5, 150, 50, WS_CHILD | WS_VISIBLE | WS_TABSTOP | ES_MULTILINE | WS_VSCROLL | ES_AUTOVSCROLL | ES_WANTRETURN
176 EDIT_READONLY_DIALOG DIALOG 0, 0, 160, 80
177 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | DS_CENTER
178 CAPTION "Edit Readonly Test"
179 FONT 8, "MS Shell Dlg"
181 PUSHBUTTON "OK", IDOK, 20, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
182 PUSHBUTTON "Cancel", IDCANCEL, 100, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
183 EDITTEXT 1000, 5, 5, 150, 50, WS_CHILD | WS_VISIBLE | WS_TABSTOP | ES_MULTILINE | WS_VSCROLL | ES_AUTOVSCROLL | ES_READONLY
186 /* @makedep: test_mono.bmp */
187 100 BITMAP test_mono.bmp
195 MENUITEM "&New file", 100
197 MENUITEM "&Open", 101
198 MENUITEM "&Save", 102
200 MENUITEM "E&xit", 103
204 MENUITEM "&Undo", 200
207 MENUITEM "&Copy", 202
208 MENUITEM "&Paste", 203
209 MENUITEM "&Delete", 204
211 MENUITEM "&Quit", 300