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 /* @makedep: test_mono.bmp */
102 100 BITMAP test_mono.bmp
109 MENUITEM "&Open", 101
110 MENUITEM "&Save", 102
112 MENUITEM "E&xit", 103
116 MENUITEM "&Undo", 200
119 MENUITEM "&Copy", 202
120 MENUITEM "&Paste", 203
121 MENUITEM "&Delete", 204