xref: /aosp_15_r20/external/lzma/CPP/7zip/GuiCommon.rc (revision f6dc9357d832569d4d1f5d24eacdb3935a1ae8e6)
1#include <windows.h>
2
3// #include <winnt.h>
4// #include <WinUser.h>
5
6// for Windows CE:
7#include <CommCtrl.h>
8
9
10LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
11
12#undef m
13#undef bxs
14#undef bys
15#undef bxsDots
16#undef y
17#undef xc
18#undef yc
19#undef xs
20#undef ys
21#undef bx
22#undef bx1
23#undef bx2
24#undef bx3
25#undef by
26#undef by1
27#undef by2
28#undef by3
29#undef gSpace
30#undef gSize
31#undef marg2
32#undef marg3
33
34#undef MY_DIALOG
35#undef MY_RESIZE_DIALOG
36#undef MY_PAGE
37
38#define m 8
39#define bxs 64
40#define bys 16
41#define bxsDots 20
42
43#define xs (xc + m + m)
44#define ys (yc + m + m)
45
46#define bx1 (xs - m - bxs)
47#define bx2 (bx1 - m - bxs)
48#define bx3 (bx2 - m - bxs)
49#define bx bx1
50
51#define by1 (ys - m - bys)
52#define by2 (by1 - m - bys)
53#define by by1
54
55
56#define MY_MODAL_DIALOG_STYLE  STYLE  DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
57#define MY_MODAL_RESIZE_DIALOG_STYLE  MY_MODAL_DIALOG_STYLE | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_SIZEBOX | WS_THICKFRAME
58
59#define MY_PAGE_STYLE  STYLE  WS_CHILD | WS_DISABLED | WS_CAPTION
60
61#define MY_FONT  FONT 8, "MS Shell Dlg"
62
63#define MY_MODAL_DIALOG_POSTFIX  0, 0, xs, ys  MY_MODAL_DIALOG_STYLE  MY_FONT
64
65#define SMALL_PAGE_SIZE_X 120
66
67// #define MY_DIALOG         DIALOG 0, 0, xs, ys  MY_MODAL_DIALOG_STYLE  MY_FONT
68// #define MY_RESIZE_DIALOG  DIALOG 0, 0, xs, ys  MY_MODAL_RESIZE_DIALOG_STYLE  MY_FONT
69#define MY_PAGE_POSTFIX   0, 0, xs, ys  MY_PAGE_STYLE  MY_FONT
70#define MY_PAGE           DIALOG MY_PAGE_POSTFIX
71
72#define OK_CANCEL \
73  DEFPUSHBUTTON  "OK",     IDOK,     bx2, by, bxs, bys \
74  PUSHBUTTON     "Cancel", IDCANCEL, bx1, by, bxs, bys
75
76#define CONTINUE_CANCEL \
77  DEFPUSHBUTTON  "Continue",IDCONTINUE, bx2, by, bxs, bys \
78  PUSHBUTTON     "Cancel",  IDCANCEL,   bx1, by, bxs, bys
79
80#define MY_BUTTON__CLOSE \
81  DEFPUSHBUTTON  "&Close", IDCLOSE,  bx1, by, bxs, bys
82
83
84#define MY_COMBO  CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
85#define MY_COMBO_SORTED  MY_COMBO | CBS_SORT
86#define MY_COMBO_WITH_EDIT  CBS_DROPDOWN | CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
87
88#define MY_CHECKBOX "Button", BS_AUTOCHECKBOX | WS_TABSTOP
89
90#define cboxColonSize 18
91#define colonString ":"
92
93#define MY_CONTROL_CHECKBOX(_text,_id,_x,_y,_xsize)  CONTROL _text, _id, MY_CHECKBOX, _x,_y,_xsize,10
94#define MY_CONTROL_CHECKBOX_2LINES(_text,_id,_x,_y,_xsize)  CONTROL _text, _id, MY_CHECKBOX | BS_MULTILINE, _x,_y,_xsize,16
95#define MY_CONTROL_CHECKBOX_COLON(_id,_x,_y)  MY_CONTROL_CHECKBOX( colonString, _id, _x,_y,cboxColonSize)
96
97#define MY_AUTORADIOBUTTON "Button", BS_AUTORADIOBUTTON
98#define MY_AUTORADIOBUTTON_GROUP MY_AUTORADIOBUTTON | WS_GROUP
99
100#define MY_CONTROL_AUTORADIOBUTTON(_text,_id,_x,_y,_xsize)  CONTROL _text, _id, MY_AUTORADIOBUTTON, _x,_y,_xsize,10
101#define MY_CONTROL_AUTORADIOBUTTON_GROUP(_text,_id,_x,_y,_xsize)  CONTROL _text, _id, MY_AUTORADIOBUTTON_GROUP, _x,_y,_xsize,10
102
103#define MY_TEXT_NOPREFIX 8, SS_NOPREFIX
104
105
106// WS_EX_CLIENTEDGE
107#define MY_CONTROL_EDIT_WITH_SPIN(_id_edit, _id_spin, _text,  _x, _y, _xSize) \
108  EDITTEXT _id_edit,  _x, _y, _xSize, 12,  ES_CENTER | ES_NUMBER | ES_AUTOHSCROLL \
109  CONTROL  _text, _id_spin,  L"msctls_updown32", \
110        UDS_SETBUDDYINT   \
111      | UDS_ALIGNRIGHT    \
112      | UDS_AUTOBUDDY     \
113      | UDS_ARROWKEYS     \
114      | UDS_NOTHOUSANDS,  \
115      _x + _xSize, _y, 8, 12  // these values are unused
116
117
118#define OPTIONS_PAGE_XC_SIZE 300
119#define OPTIONS_PAGE_YC_SIZE 280
120