user32: CallWindowProc[AW] for mismatched built-in winprocs should take into account...
[wine] / dlls / user32 / tests / resource.rc
1 /* Unit test suite for resources.
2  *
3  * Copyright 2004 Ferenc Wagner
4  *
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.
9  *
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.
14  *
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
18  */
19
20 #include "windef.h"
21 #include "winuser.h"
22
23 1 ACCELERATORS
24 {
25   "^N", 1000 /* Ctrl+'N' */
26   "N", 1001 /* Shift+'n' */
27   "n", 1002 /* 'n' */
28 }
29
30 2 ACCELERATORS
31 {
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' */
38 }
39
40 STRINGTABLE
41 {
42   0 "String resource"
43   1 "Another string resource"
44   65534 "Test high id"
45 }
46
47 TEST_DIALOG DIALOG DISCARDABLE 0, 0, 60, 30
48 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
49 CAPTION "Test dialog"
50 FONT 8, "MS Shell Dlg"
51 {
52   DEFPUSHBUTTON "OK",     IDOK,4,4,50,14, WS_TABSTOP | WS_GROUP
53 }
54
55 RADIO_TEST_DIALOG DIALOGEX 0, 0, 160, 80
56 STYLE DS_SETFONT | DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
57 CAPTION "Radio Button Test Dialog"
58 FONT 8, "MS Shell Dlg"
59 {
60   GROUPBOX "Static",      100,6,5,92,70
61   CONTROL  "Radio1",      200,"Button",BS_AUTORADIOBUTTON |
62                           WS_GROUP | WS_TABSTOP,17,27,39,10
63   CONTROL  "Radio2",      201,"Button",BS_AUTORADIOBUTTON,17,40,39,10
64   PUSHBUTTON "Cancel",    IDCANCEL,109,20,50,14, WS_TABSTOP | WS_GROUP
65 }
66
67 CLASS_TEST_DIALOG DIALOG DISCARDABLE  0, 0, 91, 28
68 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
69 CAPTION "CreateDialogParams Test"
70 CLASS "TestDialog"
71 FONT 8, "MS Shell Dlg"
72 {
73 }
74
75 CLASS_TEST_DIALOG_2 DIALOG DISCARDABLE  0, 0, 100, 100
76 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
77 CAPTION "CreateDialogParams Test"
78 CLASS "MyDialogClass"
79 FONT 8, "MS Shell Dlg"
80 {
81 }
82
83 FOCUS_TEST_DIALOG DIALOG DISCARDABLE 0, 0, 60, 30
84 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | DS_CONTROL
85 CAPTION "Test dialog"
86 FONT 8, "MS Shell Dlg"
87 {
88   EDITTEXT                200,4,4,50,14
89 }
90
91 IDD_DIALOG DIALOG DISCARDABLE  0, 0, 186, 95
92 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
93 CAPTION "Dialog"
94 FONT 8, "MS Sans Serif"
95 BEGIN
96     DEFPUSHBUTTON   "OK",IDOK,129,7,50,14
97     PUSHBUTTON      "Cancel",IDCANCEL,129,24,50,14
98 END
99
100 /* BINRES test_mono.bmp */
101 100 BITMAP test_mono.bmp
102 /* {
103  '42 4D 42 00 00 00 00 00 00 00 3E 00 00 00 28 00'
104  '00 00 02 00 00 00 01 00 00 00 01 00 01 00 00 00'
105  '00 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00'
106  '00 00 00 00 00 00 00 00 00 00 FF FF FF 00 40 00'
107  '00 00'
108 } */
109
110 1 MENU
111 {
112     POPUP "&File"
113     {
114         MENUITEM "&New", 100
115         MENUITEM "&Open", 101
116         MENUITEM "&Save", 102
117         MENUITEM SEPARATOR
118         MENUITEM "E&xit", 103
119     }
120     POPUP "Edit"
121     {
122         MENUITEM "&Undo", 200
123         MENUITEM SEPARATOR
124         MENUITEM "Cu&t", 201
125         MENUITEM "&Copy", 202
126         MENUITEM "&Paste", 203
127         MENUITEM "&Delete", 204
128     }
129 }