1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#include <windows.h>
#include "dialog.h"
TESTDLG DIALOG 10, 10, 500, 340
STYLE WS_POPUP | WS_BORDER
CAPTION "Test Dialog"
FONT 8,"MS Shell Dlg"
MENU IDMENU
{
PUSHBUTTON "Try Me!", IDBUTTON, 10, 10, 150, 18
AUTOCHECKBOX "Check", IDCHECK, 10,30,150,18
PUSHBUTTON "Quit", IDQUIT, 10,50,150,18
EDITTEXT IDLOADTXT, 10, 100, 200, 12, ES_READONLY
PUSHBUTTON "Load ...",IDLOADBUT, 10, 115, 100, 18
EDITTEXT IDSAVETXT, 10, 140, 200, 12, ES_READONLY
PUSHBUTTON "Save ...",IDSAVEBUT, 10, 155, 100, 18
EDITTEXT IDDIRTXT, 10, 180, 200, 12, ES_READONLY
PUSHBUTTON "Dir ...",IDDIRBUT, 10, 195, 100, 18
COMBOBOX IDCOMBO, 10, 220, 100, 100, CBS_SIMPLE | CBS_SORT | WS_VSCROLL | WS_TABSTOP
AUTORADIOBUTTON "Radio 1", IDRADIO1, 120, 220, 100, 18
AUTORADIOBUTTON "Radio 2", IDRADIO2, 120, 240, 100, 18
AUTORADIOBUTTON "Radio 3", IDRADIO3, 120, 260, 100, 18
LTEXT "Text:", IDSTATIC1, 210, 10, 35, 12
EDITTEXT IDTEXT, 250, 10, 100, 100, ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_MULTILINE | ES_WANTRETURN
}
IDMENU MENU
{
POPUP "File"
{
MENUITEM "Load", IDMENULOAD
MENUITEM "Save", IDMENUSAVE
MENUITEM "Dialog", IDMENUDIALOG
MENUITEM "Quit", IDMENUQUIT
}
POPUP "Test"
{
MENUITEM "Test Item 1", IDMENUTESTITEM1
POPUP "Sub"
{
MENUITEM "Test Item 2", IDMENUTESTITEM2
}
}
}
IDPOPUP MENU
{
POPUP "Popup?"
{
MENUITEM "Opt 1", IDPOPUP1
MENUITEM "Opt 2", IDPOPUP2
}
}
|