source: trunk/src/win32k/pe2lx/dialog.h@ 847

Last change on this file since 847 was 847, checked in by bird, 26 years ago

Initial checkin of Win32k. (not tested & pe2lx not up-to-date!)

File size: 8.4 KB
Line 
1/* $Id: dialog.h,v 1.1 1999-09-06 02:20:04 bird Exp $ */
2
3/*
4 * PE2LX dialog conversion code
5 *
6 * Copyright 1998 Sander van Leeuwen (sandervl@xs4all.nl)
7 * Copyright 1998 Patrick Haller
8 * Copyright 1998 Peter Fitzsimmons
9 *
10 *
11 * Project Odin Software License can be found in LICENSE.TXT
12 *
13 */
14#ifndef __DIALOG_H__
15#define __DIALOG_H__
16
17#pragma pack(1) /*PLF Sat 97-06-21 20:19:30*/
18
19//dialog structs
20typedef struct
21{
22 DWORD lStyle;
23 DWORD lExtendedStyle; // new for NT
24 WORD NumberOfItems;
25 WORD x;
26 WORD y;
27 WORD cx;
28 WORD cy;
29 WORD fNameOrd; //0xFFFF -> ord, else null terminated WCHAR string
30} DialogBoxHeader;
31// [Name or Ordinal] MenuName;
32////The items marked `Name or Ordinal' are the same format used
33////throughout the resource file (most notably in each resource header)
34////to store a name or an ordinal ID. As before, if the first WORD is an
35////0xffff, the next two bytes contain an ordinal ID. Otherwise, the
36////first 1 or more WORDS contain a null-terminated string. An empty
37////string is represented by a single WORD zero in the first location.
38// [Name or Ordinal] ClassName;
39// WCHAR szCaption[];
40
41typedef struct
42{
43 WORD wPointSize; // Only here if FONT set for dialog
44 WCHAR szFontName[1]; // This too /*PLF Sat 97-06-21 20:19:31*/
45} FontHeader;
46
47#define DS_SETFONT 0x40
48
49typedef struct
50{
51 DWORD lStyle;
52 DWORD lExtendedStyle;
53 WORD x;
54 WORD y;
55 WORD cx;
56 WORD cy;
57 WORD wId;
58 WORD fClassId; //0xFFFF -> ord, 0 -> null string, else null terminated WCHAR string
59// [Name or Ordinal] ClassId;
60// [Name or Ordinal] Text;
61// WORD nExtraStuff;
62} ControlData;
63
64
65typedef struct tagWINDLGTEMPLATEEX
66{
67 WORD wDlgVer; // use 1
68 WORD wSignature; // use 0xFFFF
69 DWORD dwHelpID; // Dialog's context help ID
70 DWORD lExtendedStyle;
71 DWORD lStyle;
72 WORD NumberOfItems; // Number of controls in dialog
73 short x; // Initial position, horizontal
74 short y; // Initial position, vertical
75 short cx; // Width
76 short cy; // Height
77 WORD fNameOrd; // 0xFFFF -> ord, else null terminated WCHAR string
78} WINDLGTEMPLATEEX;
79//This is followed by menu name, class name, title, and font info if style
80//includes DS_SETFONT, which have the same form as documented in the SDK for
81//DLGTEMPLATE.
82
83typedef struct tagWINDLGITEMTEMPLATEEX
84{
85 DWORD dwHelpID; // Context help ID for control
86 DWORD lExtendedStyle;
87 DWORD lStyle;
88 short x; // Initial position, horizontal
89 short y; // Initial position, vertical
90 short cx; // Width
91 short cy; // Height
92 DWORD wId; // Window ID
93 WORD fClassId; // 0xFFFF -> ord, 0 -> null string, else null terminated WCHAR string
94// [Name or Ordinal] ClassId;
95// [Name or Ordinal] Text;
96} WINDLGITEMTEMPLATEEX;
97//This is followed by class name, title, and creation data for the control,
98//which have the same form as documented in the SDK for DLGITEMTEMPLATE.
99
100//SvL: Yeah, right!
101typedef struct
102{
103 WORD wPointSize; // Only here if FONT set for dialog
104 DWORD whatever;
105 WCHAR szFontName[1]; // This too /*PLF Sat 97-06-21 20:19:31*/
106} FontHeaderEx;
107
108#pragma pack()
109
110
111
112BOOL ShowDialog(LXHeaderSuper &OS2Exe, int id, DialogBoxHeader *dhdr, int size, int cp);
113void *ConvertDialog(LXHeaderSuper &OS2Exe, int id, DialogBoxHeader *dhdr, int size, PULONG pulSize, int cp);
114ULONG QuerySizeDialog(DialogBoxHeader *dhdr, int size);
115
116
117#define WINWS_POPUP 0x80000000L
118#define WINWS_CHILD 0x40000000L
119#define WINWS_MINIMIZE 0x20000000L
120#define WINWS_VISIBLE 0x10000000L
121#define WINWS_DISABLED 0x08000000L
122#define WINWS_CLIPSIBLINGS 0x04000000L
123#define WINWS_CLIPCHILDREN 0x02000000L
124#define WINWS_MAXIMIZE 0x01000000L
125#define WINWS_CAPTION 0x00C00000L
126#define WINWS_BORDER 0x00800000L
127#define WINWS_DLGFRAME 0x00400000L
128#define WINWS_VSCROLL 0x00200000L
129#define WINWS_HSCROLL 0x00100000L
130#define WINWS_SYSMENU 0x00080000L
131#define WINWS_THICKFRAME 0x00040000L
132#define WINWS_GROUP 0x00020000L
133#define WINWS_TABSTOP 0x00010000L
134#define WINWS_MINIMIZEBOX 0x00020000L
135#define WINWS_MAXIMIZEBOX 0x00010000L
136
137/*
138 * Extended Window Styles
139 */
140#define WS_EX_DLGMODALFRAME 0x00000001L
141#define WS_EX_NOPARENTNOTIFY 0x00000004L
142#define WS_EX_TOPMOST 0x00000008L
143#define WS_EX_ACCEPTFILES 0x00000010L
144#define WS_EX_TRANSPARENT 0x00000020L
145#define WS_EX_MDICHILD 0x00000040L
146#define WS_EX_TOOLWINDOW 0x00000080L
147#define WS_EX_WINDOWEDGE 0x00000100L
148#define WS_EX_CLIENTEDGE 0x00000200L
149#define WS_EX_CONTEXTHELP 0x00000400L
150
151#define WS_EX_RIGHT 0x00001000L
152#define WS_EX_LEFT 0x00000000L
153#define WS_EX_RTLREADING 0x00002000L
154#define WS_EX_LTRREADING 0x00000000L
155#define WS_EX_LEFTSCROLLBAR 0x00004000L
156#define WS_EX_RIGHTSCROLLBAR 0x00000000L
157
158#define WS_EX_CONTROLPARENT 0x00010000L
159#define WS_EX_STATICEDGE 0x00020000L
160#define WS_EX_APPWINDOW 0x00040000L
161
162
163#define WIN_BUTTON 0x80
164#define WIN_EDIT 0x81
165#define WIN_STATIC 0x82
166#define WIN_LISTBOX 0x83
167#define WIN_SCROLLBAR 0x84
168#define WIN_COMBOBOX 0x85
169
170#define WINBS_PUSHBUTTON 0x00L
171#define WINBS_DEFPUSHBUTTON 0x01L
172#define WINBS_CHECKBOX 0x02L
173#define WINBS_AUTOCHECKBOX 0x03L
174#define WINBS_RADIOBUTTON 0x04L
175#define WINBS_3STATE 0x05L
176#define WINBS_AUTO3STATE 0x06L
177#define WINBS_GROUPBOX 0x07L
178#define WINBS_USERBUTTON 0x08L
179#define WINBS_AUTORADIOBUTTON 0x09L
180#define WINBS_OWNERDRAW 0x0BL
181#define WINBS_LEFTTEXT 0x20L
182
183#define WINCBS_SIMPLE 0x0001L
184#define WINCBS_DROPDOWN 0x0002L
185#define WINCBS_DROPDOWNLIST 0x0003L
186#define WINCBS_OWNERDRAWFIXED 0x0010L
187#define WINCBS_OWNERDRAWVARIABLE 0x0020L
188#define WINCBS_AUTOHSCROLL 0x0040L
189#define WINCBS_OEMCONVERT 0x0080L
190#define WINCBS_SORT 0x0100L
191#define WINCBS_HASSTRINGS 0x0200L
192#define WINCBS_NOINTEGRALHEIGHT 0x0400L
193#define WINCBS_DISABLENOSCROLL 0x0800L
194
195#define WINES_LEFT 0x0000L
196#define WINES_CENTER 0x0001L
197#define WINES_RIGHT 0x0002L
198#define WINES_MULTILINE 0x0004L
199#define WINES_UPPERCASE 0x0008L
200#define WINES_LOWERCASE 0x0010L
201#define WINES_PASSWORD 0x0020L
202#define WINES_AUTOVSCROLL 0x0040L
203#define WINES_AUTOHSCROLL 0x0080L
204#define WINES_NOHIDESEL 0x0100L
205#define WINES_OEMCONVERT 0x0400L
206#define WINES_READONLY 0x0800L
207#define WINES_WANTRETURN 0x1000L
208
209#define WINLBS_NOTIFY 0x0001L
210#define WINLBS_SORT 0x0002L
211#define WINLBS_NOREDRAW 0x0004L
212#define WINLBS_MULTIPLESEL 0x0008L
213#define WINLBS_OWNERDRAWFIXED 0x0010L
214#define WINLBS_OWNERDRAWVARIABLE 0x0020L
215#define WINLBS_HASSTRINGS 0x0040L
216#define WINLBS_USETABSTOPS 0x0080L
217#define WINLBS_NOINTEGRALHEIGHT 0x0100L
218#define WINLBS_MULTICOLUMN 0x0200L
219#define WINLBS_WANTKEYBOARDINPUT 0x0400L
220#define WINLBS_EXTENDEDSEL 0x0800L
221#define WINLBS_DISABLENOSCROLL 0x1000L
222#define WINLBS_NODATA 0x2000L
223
224#define WINSBS_HORZ 0x0000L
225#define WINSBS_VERT 0x0001L
226#define WINSBS_TOPALIGN 0x0002L
227#define WINSBS_LEFTALIGN 0x0002L
228#define WINSBS_BOTTOMALIGN 0x0004L
229#define WINSBS_RIGHTALIGN 0x0004L
230#define WINSBS_SIZEBOXTOPLEFTALIGN 0x0002L
231#define WINSBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L
232#define WINSBS_SIZEBOX 0x0008L
233
234#define WINSS_LEFT 0x00L
235#define WINSS_CENTER 0x01L
236#define WINSS_RIGHT 0x02L
237#define WINSS_ICON 0x03L
238#define WINSS_BLACKRECT 0x04L
239#define WINSS_GRAYRECT 0x05L
240#define WINSS_WHITERECT 0x06L
241#define WINSS_BLACKFRAME 0x07L
242#define WINSS_GRAYFRAME 0x08L
243#define WINSS_WHITEFRAME 0x09L
244#define WINSS_USERITEM 0x0AL
245#define WINSS_SIMPLE 0x0BL
246#define WINSS_LEFTNOWORDWRAP 0x0CL
247#define WINSS_NOPREFIX 0x80L
248
249#endif
Note: See TracBrowser for help on using the repository browser.