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 MULTI_EDIT_DIALOG DIALOG DISCARDABLE 0, 0, 160, 75
102 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | DS_CENTER
103 CAPTION "Multiple Edit Test"
104 FONT 8, "MS Shell Dlg"
106 EDITTEXT 1000, 5, 5, 150, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP | ES_MULTILINE | ES_WANTRETURN
107 EDITTEXT 1001, 5, 25, 150, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
108 EDITTEXT 1002, 5, 45, 150, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
111 EDIT_DIALOG DIALOG DISCARDABLE 0, 0, 160, 80
112 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | DS_CENTER
114 FONT 8, "MS Shell Dlg"
116 PUSHBUTTON "Ok", IDOK, 20, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
117 PUSHBUTTON "Cancel", IDCANCEL, 100, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
118 EDITTEXT 1000, 5, 5, 150, 50, WS_CHILD | WS_VISIBLE | WS_TABSTOP | ES_MULTILINE | WS_VSCROLL | ES_AUTOVSCROLL
121 EDIT_WANTRETURN_DIALOG DIALOG DISCARDABLE 0, 0, 160, 80
122 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | DS_CENTER
124 FONT 8, "MS Shell Dlg"
126 PUSHBUTTON "Ok", IDOK, 20, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
127 PUSHBUTTON "Cancel", IDCANCEL, 100, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
128 EDITTEXT 1000, 5, 5, 150, 50, WS_CHILD | WS_VISIBLE | WS_TABSTOP | ES_MULTILINE | WS_VSCROLL | ES_AUTOVSCROLL | ES_WANTRETURN
131 EDIT_READONLY_DIALOG DIALOG DISCARDABLE 0, 0, 160, 80
132 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | DS_CENTER
133 CAPTION "Edit Readonly Test"
134 FONT 8, "MS Shell Dlg"
136 PUSHBUTTON "Ok", IDOK, 20, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
137 PUSHBUTTON "Cancel", IDCANCEL, 100, 60, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
138 EDITTEXT 1000, 5, 5, 150, 50, WS_CHILD | WS_VISIBLE | WS_TABSTOP | ES_MULTILINE | WS_VSCROLL | ES_AUTOVSCROLL | ES_READONLY
141 /* @makedep: test_mono.bmp */
142 100 BITMAP test_mono.bmp
149 MENUITEM "&Open", 101
150 MENUITEM "&Save", 102
152 MENUITEM "E&xit", 103
156 MENUITEM "&Undo", 200
159 MENUITEM "&Copy", 202
160 MENUITEM "&Paste", 203
161 MENUITEM "&Delete", 204