1 | /* $Id: commdlg.h,v 1.6 2000-07-18 18:30:33 sandervl Exp $ */
|
---|
2 | /*
|
---|
3 | * COMMDLG - Common Wine Dialog ... :-)
|
---|
4 | */
|
---|
5 |
|
---|
6 | #ifndef __WINE_COMMDLG_H
|
---|
7 | #define __WINE_COMMDLG_H
|
---|
8 |
|
---|
9 | #ifdef __cplusplus
|
---|
10 | extern "C" {
|
---|
11 | #endif
|
---|
12 |
|
---|
13 | #include "windef.h" /* needed for CHOOSEFONT structure */
|
---|
14 | #include "winuser.h"
|
---|
15 | #include "pshpack1.h"
|
---|
16 |
|
---|
17 | #define OFN_READONLY 0x00000001
|
---|
18 | #define OFN_OVERWRITEPROMPT 0x00000002
|
---|
19 | #define OFN_HIDEREADONLY 0x00000004
|
---|
20 | #define OFN_NOCHANGEDIR 0x00000008
|
---|
21 | #define OFN_SHOWHELP 0x00000010
|
---|
22 | #define OFN_ENABLEHOOK 0x00000020
|
---|
23 | #define OFN_ENABLETEMPLATE 0x00000040
|
---|
24 | #define OFN_ENABLETEMPLATEHANDLE 0x00000080
|
---|
25 | #define OFN_NOVALIDATE 0x00000100
|
---|
26 | #define OFN_ALLOWMULTISELECT 0x00000200
|
---|
27 | #define OFN_EXTENSIONDIFFERENT 0x00000400
|
---|
28 | #define OFN_PATHMUSTEXIST 0x00000800
|
---|
29 | #define OFN_FILEMUSTEXIST 0x00001000
|
---|
30 | #define OFN_CREATEPROMPT 0x00002000
|
---|
31 | #define OFN_SHAREAWARE 0x00004000
|
---|
32 | #define OFN_NOREADONLYRETURN 0x00008000
|
---|
33 | #define OFN_NOTESTFILECREATE 0x00010000
|
---|
34 | #define OFN_NONETWORKBUTTON 0x00020000
|
---|
35 | #define OFN_NOLONGNAMES 0x00040000
|
---|
36 | #define OFN_EXPLORER 0x00080000
|
---|
37 | #define OFN_NODEREFERENCELINKS 0x00100000
|
---|
38 | #define OFN_LONGNAMES 0x00200000
|
---|
39 |
|
---|
40 | /* WINE internal flags */
|
---|
41 | #define OFN_UNICODE 0x40000000 /*to differ between 32W/A hook*/
|
---|
42 | #define OFN_WINE 0x80000000 /* comdlg32 */
|
---|
43 |
|
---|
44 | #define OFN_SHAREFALLTHROUGH 2
|
---|
45 | #define OFN_SHARENOWARN 1
|
---|
46 | #define OFN_SHAREWARN 0
|
---|
47 |
|
---|
48 | #define SAVE_DIALOG 1
|
---|
49 | #define OPEN_DIALOG 2
|
---|
50 |
|
---|
51 | typedef UINT16 (* CALLBACK LPOFNHOOKPROC16)(HWND16,UINT16,WPARAM16,LPARAM);
|
---|
52 | typedef UINT (* CALLBACK LPOFNHOOKPROC)(HWND,UINT,WPARAM,LPARAM);
|
---|
53 |
|
---|
54 | typedef struct {
|
---|
55 | DWORD lStructSize;
|
---|
56 | HWND16 hwndOwner;
|
---|
57 | HINSTANCE16 hInstance;
|
---|
58 | SEGPTR lpstrFilter;
|
---|
59 | SEGPTR lpstrCustomFilter;
|
---|
60 | DWORD nMaxCustFilter;
|
---|
61 | DWORD nFilterIndex;
|
---|
62 | SEGPTR lpstrFile;
|
---|
63 | DWORD nMaxFile;
|
---|
64 | SEGPTR lpstrFileTitle;
|
---|
65 | DWORD nMaxFileTitle;
|
---|
66 | SEGPTR lpstrInitialDir;
|
---|
67 | SEGPTR lpstrTitle;
|
---|
68 | DWORD Flags;
|
---|
69 | UINT16 nFileOffset;
|
---|
70 | UINT16 nFileExtension;
|
---|
71 | SEGPTR lpstrDefExt;
|
---|
72 | LPARAM lCustData;
|
---|
73 | LPOFNHOOKPROC16 lpfnHook;
|
---|
74 | SEGPTR lpTemplateName;
|
---|
75 | } OPENFILENAME16,*LPOPENFILENAME16;
|
---|
76 |
|
---|
77 | typedef struct {
|
---|
78 | DWORD lStructSize;
|
---|
79 | HWND hwndOwner;
|
---|
80 | HINSTANCE hInstance;
|
---|
81 | LPCSTR lpstrFilter;
|
---|
82 | LPSTR lpstrCustomFilter;
|
---|
83 | DWORD nMaxCustFilter;
|
---|
84 | DWORD nFilterIndex;
|
---|
85 | LPSTR lpstrFile;
|
---|
86 | DWORD nMaxFile;
|
---|
87 | LPSTR lpstrFileTitle;
|
---|
88 | DWORD nMaxFileTitle;
|
---|
89 | LPCSTR lpstrInitialDir;
|
---|
90 | LPCSTR lpstrTitle;
|
---|
91 | DWORD Flags;
|
---|
92 | WORD nFileOffset;
|
---|
93 | WORD nFileExtension;
|
---|
94 | LPCSTR lpstrDefExt;
|
---|
95 | LPARAM lCustData;
|
---|
96 | LPOFNHOOKPROC lpfnHook;
|
---|
97 | LPCSTR lpTemplateName;
|
---|
98 | } OPENFILENAMEA,*LPOPENFILENAMEA;
|
---|
99 |
|
---|
100 | typedef struct {
|
---|
101 | DWORD lStructSize;
|
---|
102 | HWND hwndOwner;
|
---|
103 | HINSTANCE hInstance;
|
---|
104 | LPCWSTR lpstrFilter;
|
---|
105 | LPWSTR lpstrCustomFilter;
|
---|
106 | DWORD nMaxCustFilter;
|
---|
107 | DWORD nFilterIndex;
|
---|
108 | LPWSTR lpstrFile;
|
---|
109 | DWORD nMaxFile;
|
---|
110 | LPWSTR lpstrFileTitle;
|
---|
111 | DWORD nMaxFileTitle;
|
---|
112 | LPCWSTR lpstrInitialDir;
|
---|
113 | LPCWSTR lpstrTitle;
|
---|
114 | DWORD Flags;
|
---|
115 | WORD nFileOffset;
|
---|
116 | WORD nFileExtension;
|
---|
117 | LPCWSTR lpstrDefExt;
|
---|
118 | LPARAM lCustData;
|
---|
119 | LPOFNHOOKPROC lpfnHook;
|
---|
120 | LPCWSTR lpTemplateName;
|
---|
121 | } OPENFILENAMEW,*LPOPENFILENAMEW;
|
---|
122 |
|
---|
123 | DECL_WINELIB_TYPE_AW(OPENFILENAME)
|
---|
124 | DECL_WINELIB_TYPE_AW(LPOPENFILENAME)
|
---|
125 |
|
---|
126 | typedef struct
|
---|
127 | {
|
---|
128 | NMHDR hdr;
|
---|
129 | LPOPENFILENAMEA lpOFN;
|
---|
130 | LPSTR pszFile;
|
---|
131 | } OFNOTIFYA, *LPOFNOTIFYA;
|
---|
132 |
|
---|
133 | typedef struct
|
---|
134 | {
|
---|
135 | NMHDR hdr;
|
---|
136 | LPOPENFILENAMEW lpOFN;
|
---|
137 | LPWSTR pszFile;
|
---|
138 | } OFNOTIFYW, *LPOFNOTIFYW;
|
---|
139 |
|
---|
140 | DECL_WINELIB_TYPE_AW(OFNOTIFY)
|
---|
141 | DECL_WINELIB_TYPE_AW(LPOFNOTIFY)
|
---|
142 |
|
---|
143 | typedef UINT16 (* CALLBACK LPCCHOOKPROC16) (HWND16, UINT16, WPARAM16, LPARAM);
|
---|
144 | typedef UINT (* CALLBACK LPCCHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
|
---|
145 |
|
---|
146 | typedef struct {
|
---|
147 | DWORD lStructSize;
|
---|
148 | HWND16 hwndOwner;
|
---|
149 | HWND16 hInstance;
|
---|
150 | COLORREF rgbResult;
|
---|
151 | COLORREF *lpCustColors;
|
---|
152 | DWORD Flags;
|
---|
153 | LPARAM lCustData;
|
---|
154 | LPCCHOOKPROC16 lpfnHook;
|
---|
155 | SEGPTR lpTemplateName;
|
---|
156 | } CHOOSECOLOR16;
|
---|
157 | typedef CHOOSECOLOR16 *LPCHOOSECOLOR16;
|
---|
158 |
|
---|
159 | typedef struct {
|
---|
160 | DWORD lStructSize;
|
---|
161 | HWND hwndOwner;
|
---|
162 | HWND hInstance;
|
---|
163 | DWORD rgbResult;
|
---|
164 | LPDWORD lpCustColors;
|
---|
165 | DWORD Flags;
|
---|
166 | DWORD lCustData;
|
---|
167 | LPCCHOOKPROC lpfnHook;
|
---|
168 | LPCSTR lpTemplateName;
|
---|
169 | } CHOOSECOLORA;
|
---|
170 | typedef CHOOSECOLORA *LPCHOOSECOLORA;
|
---|
171 |
|
---|
172 | typedef struct {
|
---|
173 | DWORD lStructSize;
|
---|
174 | HWND hwndOwner;
|
---|
175 | HWND hInstance;
|
---|
176 | DWORD rgbResult;
|
---|
177 | LPDWORD *lpCustColors;
|
---|
178 | DWORD Flags;
|
---|
179 | DWORD lCustData;
|
---|
180 | LPCCHOOKPROC lpfnHook;
|
---|
181 | LPCWSTR lpTemplateName;
|
---|
182 | } CHOOSECOLORW;
|
---|
183 | typedef CHOOSECOLORW *LPCHOOSECOLORW;
|
---|
184 |
|
---|
185 | DECL_WINELIB_TYPE_AW(CHOOSECOLOR)
|
---|
186 | DECL_WINELIB_TYPE_AW(LPCHOOSECOLOR)
|
---|
187 |
|
---|
188 |
|
---|
189 | #define CC_RGBINIT 0x00000001
|
---|
190 | #define CC_FULLOPEN 0x00000002
|
---|
191 | #define CC_PREVENTFULLOPEN 0x00000004
|
---|
192 | #define CC_SHOWHELP 0x00000008
|
---|
193 | #define CC_ENABLEHOOK 0x00000010
|
---|
194 | #define CC_ENABLETEMPLATE 0x00000020
|
---|
195 | #define CC_ENABLETEMPLATEHANDLE 0x00000040
|
---|
196 |
|
---|
197 | typedef UINT16 (* CALLBACK LPFRHOOKPROC16)(HWND16,UINT16,WPARAM16,LPARAM);
|
---|
198 | typedef UINT (* CALLBACK LPFRHOOKPROC)(HWND,UINT,WPARAM,LPARAM);
|
---|
199 |
|
---|
200 | typedef struct {
|
---|
201 | DWORD lStructSize; /* size of this struct 0x20 */
|
---|
202 | HWND16 hwndOwner; /* handle to owner's window */
|
---|
203 | HINSTANCE16 hInstance; /* instance handle of.EXE that */
|
---|
204 | /* contains cust. dlg. template */
|
---|
205 | DWORD Flags; /* one or more of the FR_?? */
|
---|
206 | SEGPTR lpstrFindWhat; /* ptr. to search string */
|
---|
207 | SEGPTR lpstrReplaceWith; /* ptr. to replace string */
|
---|
208 | UINT16 wFindWhatLen; /* size of find buffer */
|
---|
209 | UINT16 wReplaceWithLen; /* size of replace buffer */
|
---|
210 | LPARAM lCustData; /* data passed to hook fn. */
|
---|
211 | LPFRHOOKPROC16 lpfnHook;
|
---|
212 | SEGPTR lpTemplateName; /* custom template name */
|
---|
213 | } FINDREPLACE16, *LPFINDREPLACE16;
|
---|
214 |
|
---|
215 | typedef struct {
|
---|
216 | DWORD lStructSize;
|
---|
217 | HWND hwndOwner;
|
---|
218 | HINSTANCE hInstance;
|
---|
219 |
|
---|
220 | DWORD Flags;
|
---|
221 | LPSTR lpstrFindWhat;
|
---|
222 | LPSTR lpstrReplaceWith;
|
---|
223 | WORD wFindWhatLen;
|
---|
224 | WORD wReplaceWithLen;
|
---|
225 | LPARAM lCustData;
|
---|
226 | LPFRHOOKPROC lpfnHook;
|
---|
227 | LPCSTR lpTemplateName;
|
---|
228 | } FINDREPLACEA, *LPFINDREPLACEA;
|
---|
229 |
|
---|
230 | typedef struct {
|
---|
231 | DWORD lStructSize;
|
---|
232 | HWND hwndOwner;
|
---|
233 | HINSTANCE hInstance;
|
---|
234 |
|
---|
235 | DWORD Flags;
|
---|
236 | LPWSTR lpstrFindWhat;
|
---|
237 | LPWSTR lpstrReplaceWith;
|
---|
238 | WORD wFindWhatLen;
|
---|
239 | WORD wReplaceWithLen;
|
---|
240 | LPARAM lCustData;
|
---|
241 | LPFRHOOKPROC lpfnHook;
|
---|
242 | LPCWSTR lpTemplateName;
|
---|
243 | } FINDREPLACEW, *LPFINDREPLACEW;
|
---|
244 |
|
---|
245 | DECL_WINELIB_TYPE_AW(FINDREPLACE)
|
---|
246 | DECL_WINELIB_TYPE_AW(LPFINDREPLACE)
|
---|
247 |
|
---|
248 | #define FR_DOWN 0x00000001
|
---|
249 | #define FR_WHOLEWORD 0x00000002
|
---|
250 | #define FR_MATCHCASE 0x00000004
|
---|
251 | #define FR_FINDNEXT 0x00000008
|
---|
252 | #define FR_REPLACE 0x00000010
|
---|
253 | #define FR_REPLACEALL 0x00000020
|
---|
254 | #define FR_DIALOGTERM 0x00000040
|
---|
255 | #define FR_SHOWHELP 0x00000080
|
---|
256 | #define FR_ENABLEHOOK 0x00000100
|
---|
257 | #define FR_ENABLETEMPLATE 0x00000200
|
---|
258 | #define FR_NOUPDOWN 0x00000400
|
---|
259 | #define FR_NOMATCHCASE 0x00000800
|
---|
260 | #define FR_NOWHOLEWORD 0x00001000
|
---|
261 | #define FR_ENABLETEMPLATEHANDLE 0x00002000
|
---|
262 | #define FR_HIDEUPDOWN 0x00004000
|
---|
263 | #define FR_HIDEMATCHCASE 0x00008000
|
---|
264 | #define FR_HIDEWHOLEWORD 0x00010000
|
---|
265 |
|
---|
266 | typedef UINT16 (* CALLBACK LPCFHOOKPROC16)(HWND16,UINT16,WPARAM16,LPARAM);
|
---|
267 | typedef UINT (* CALLBACK LPCFHOOKPROC)(HWND,UINT,WPARAM,LPARAM);
|
---|
268 |
|
---|
269 | typedef struct
|
---|
270 | {
|
---|
271 | DWORD lStructSize;
|
---|
272 | HWND16 hwndOwner; /* caller's window handle */
|
---|
273 | HDC16 hDC; /* printer DC/IC or NULL */
|
---|
274 | SEGPTR lpLogFont; /* ptr. to a LOGFONT struct */
|
---|
275 | short iPointSize; /* 10 * size in points of selected font */
|
---|
276 | DWORD Flags; /* enum. type flags */
|
---|
277 | COLORREF rgbColors; /* returned text color */
|
---|
278 | LPARAM lCustData; /* data passed to hook fn. */
|
---|
279 | LPCFHOOKPROC16 lpfnHook;
|
---|
280 | SEGPTR lpTemplateName; /* custom template name */
|
---|
281 | HINSTANCE16 hInstance; /* instance handle of.EXE that */
|
---|
282 | /* contains cust. dlg. template */
|
---|
283 | SEGPTR lpszStyle; /* return the style field here */
|
---|
284 | /* must be LF_FACESIZE or bigger */
|
---|
285 | UINT16 nFontType; /* same value reported to the */
|
---|
286 | /* EnumFonts callback with the */
|
---|
287 | /* extra FONTTYPE_ bits added */
|
---|
288 | short nSizeMin; /* minimum pt size allowed & */
|
---|
289 | short nSizeMax; /* max pt size allowed if */
|
---|
290 | /* CF_LIMITSIZE is used */
|
---|
291 | } CHOOSEFONT16, *LPCHOOSEFONT16;
|
---|
292 |
|
---|
293 |
|
---|
294 | typedef struct
|
---|
295 | {
|
---|
296 | UINT lStructSize;
|
---|
297 | HWND hwndOwner;
|
---|
298 | HDC hDC;
|
---|
299 | LPLOGFONTA lpLogFont;
|
---|
300 | INT iPointSize;
|
---|
301 | DWORD Flags;
|
---|
302 | COLORREF rgbColors;
|
---|
303 | LPARAM lCustData;
|
---|
304 | LPCFHOOKPROC lpfnHook;
|
---|
305 | LPCSTR lpTemplateName;
|
---|
306 | HINSTANCE hInstance;
|
---|
307 | LPSTR lpszStyle;
|
---|
308 | UINT16 nFontType;
|
---|
309 | UINT16 ___MISSING_ALIGNMENT__;
|
---|
310 | INT nSizeMin;
|
---|
311 | INT nSizeMax;
|
---|
312 | } CHOOSEFONTA, *LPCHOOSEFONTA;
|
---|
313 |
|
---|
314 | typedef struct
|
---|
315 | {
|
---|
316 | UINT lStructSize;
|
---|
317 | HWND hwndOwner;
|
---|
318 | HDC hDC;
|
---|
319 | LPLOGFONTW lpLogFont;
|
---|
320 | INT iPointSize;
|
---|
321 | DWORD Flags;
|
---|
322 | COLORREF rgbColors;
|
---|
323 | LPARAM lCustData;
|
---|
324 | LPCFHOOKPROC lpfnHook;
|
---|
325 | LPCWSTR lpTemplateName;
|
---|
326 | HINSTANCE hInstance;
|
---|
327 | LPWSTR lpszStyle;
|
---|
328 | UINT16 nFontType;
|
---|
329 | UINT16 ___MISSING_ALIGNMENT__;
|
---|
330 | INT nSizeMin;
|
---|
331 | INT nSizeMax;
|
---|
332 | } CHOOSEFONTW, *LPCHOOSEFONTW;
|
---|
333 |
|
---|
334 | DECL_WINELIB_TYPE_AW(CHOOSEFONT)
|
---|
335 | DECL_WINELIB_TYPE_AW(LPCHOOSEFONT)
|
---|
336 |
|
---|
337 | #define CF_SCREENFONTS 0x00000001
|
---|
338 | #define CF_PRINTERFONTS 0x00000002
|
---|
339 | #define CF_BOTH (CF_SCREENFONTS | CF_PRINTERFONTS)
|
---|
340 | #define CF_SHOWHELP 0x00000004L
|
---|
341 | #define CF_ENABLEHOOK 0x00000008L
|
---|
342 | #define CF_ENABLETEMPLATE 0x00000010L
|
---|
343 | #define CF_ENABLETEMPLATEHANDLE 0x00000020L
|
---|
344 | #define CF_INITTOLOGFONTSTRUCT 0x00000040L
|
---|
345 | #define CF_USESTYLE 0x00000080L
|
---|
346 | #define CF_EFFECTS 0x00000100L
|
---|
347 | #define CF_APPLY 0x00000200L
|
---|
348 | #define CF_ANSIONLY 0x00000400L
|
---|
349 | #define CF_SCRIPTSONLY CF_ANSIONLY
|
---|
350 | #define CF_NOVECTORFONTS 0x00000800L
|
---|
351 | #define CF_NOOEMFONTS CF_NOVECTORFONTS
|
---|
352 | #define CF_NOSIMULATIONS 0x00001000L
|
---|
353 | #define CF_LIMITSIZE 0x00002000L
|
---|
354 | #define CF_FIXEDPITCHONLY 0x00004000L
|
---|
355 | #define CF_WYSIWYG 0x00008000L /* use with CF_SCREENFONTS & CF_PRINTERFONTS */
|
---|
356 | #define CF_FORCEFONTEXIST 0x00010000L
|
---|
357 | #define CF_SCALABLEONLY 0x00020000L
|
---|
358 | #define CF_TTONLY 0x00040000L
|
---|
359 | #define CF_NOFACESEL 0x00080000L
|
---|
360 | #define CF_NOSTYLESEL 0x00100000L
|
---|
361 | #define CF_NOSIZESEL 0x00200000L
|
---|
362 | #define CF_SELECTSCRIPT 0x00400000L
|
---|
363 | #define CF_NOSCRIPTSEL 0x00800000L
|
---|
364 | #define CF_NOVERTFONTS 0x01000000L
|
---|
365 |
|
---|
366 | #define SIMULATED_FONTTYPE 0x8000
|
---|
367 | #define PRINTER_FONTTYPE 0x4000
|
---|
368 | #define SCREEN_FONTTYPE 0x2000
|
---|
369 | #define BOLD_FONTTYPE 0x0100
|
---|
370 | #define ITALIC_FONTTYPE 0x0200
|
---|
371 | #define REGULAR_FONTTYPE 0x0400
|
---|
372 |
|
---|
373 | #define WM_CHOOSEFONT_GETLOGFONT (WM_USER + 1)
|
---|
374 | #define WM_CHOOSEFONT_SETLOGFONT (WM_USER + 101)
|
---|
375 | #define WM_CHOOSEFONT_SETFLAGS (WM_USER + 102)
|
---|
376 |
|
---|
377 | #define LBSELCHSTRING "commdlg_LBSelChangedNotify"
|
---|
378 | #define SHAREVISTRING "commdlg_ShareViolation"
|
---|
379 | #define FILEOKSTRING "commdlg_FileNameOK"
|
---|
380 | #define COLOROKSTRING "commdlg_ColorOK"
|
---|
381 | #define SETRGBSTRING "commdlg_SetRGBColor"
|
---|
382 | #define FINDMSGSTRING "commdlg_FindReplace"
|
---|
383 | #define HELPMSGSTRING "commdlg_help"
|
---|
384 |
|
---|
385 | #define CD_LBSELNOITEMS -1
|
---|
386 | #define CD_LBSELCHANGE 0
|
---|
387 | #define CD_LBSELSUB 1
|
---|
388 | #define CD_LBSELADD 2
|
---|
389 |
|
---|
390 | #define CDN_FIRST (0U-601U)
|
---|
391 | #define CDN_LAST (0U-699U)
|
---|
392 |
|
---|
393 | #define CDN_INITDONE (CDN_FIRST - 0x0000)
|
---|
394 | #define CDN_SELCHANGE (CDN_FIRST - 0x0001)
|
---|
395 | #define CDN_FOLDERCHANGE (CDN_FIRST - 0x0002)
|
---|
396 | #define CDN_SHAREVIOLATION (CDN_FIRST - 0x0003)
|
---|
397 | #define CDN_HELP (CDN_FIRST - 0x0004)
|
---|
398 | #define CDN_FILEOK (CDN_FIRST - 0x0005)
|
---|
399 | #define CDN_TYPECHANGE (CDN_FIRST - 0x0006)
|
---|
400 |
|
---|
401 | #define CDM_FIRST (WM_USER + 100)
|
---|
402 | #define CDM_LAST (WM_USER + 200)
|
---|
403 |
|
---|
404 | #define CDM_GETSPEC (CDM_FIRST + 0x0000)
|
---|
405 | #define CDM_GETFILEPATH (CDM_FIRST + 0x0001)
|
---|
406 | #define CDM_GETFOLDERPATH (CDM_FIRST + 0x0002)
|
---|
407 | #define CDM_GETFOLDERLIST (CDM_FIRST + 0x0003)
|
---|
408 | #define CDM_SETCONTROLTEXT (CDM_FIRST + 0x0004)
|
---|
409 | #define CDM_HIDECONTROL (CDM_FIRST + 0x0005)
|
---|
410 | #define CDM_SETDEFEXT (CDM_FIRST + 0x0006)
|
---|
411 |
|
---|
412 | typedef UINT16 (* CALLBACK LPPRINTHOOKPROC16) (HWND16, UINT16, WPARAM16, LPARAM);
|
---|
413 | typedef UINT (* CALLBACK LPPRINTHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
|
---|
414 |
|
---|
415 | typedef UINT16 (* CALLBACK LPSETUPHOOKPROC16) (HWND16, UINT16, WPARAM16, LPARAM);
|
---|
416 | typedef UINT (* CALLBACK LPSETUPHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
|
---|
417 |
|
---|
418 | typedef struct
|
---|
419 | {
|
---|
420 | DWORD lStructSize;
|
---|
421 | HWND16 hwndOwner;
|
---|
422 | HGLOBAL16 hDevMode;
|
---|
423 | HGLOBAL16 hDevNames;
|
---|
424 | HDC16 hDC;
|
---|
425 | DWORD Flags;
|
---|
426 | WORD nFromPage;
|
---|
427 | WORD nToPage;
|
---|
428 | WORD nMinPage;
|
---|
429 | WORD nMaxPage;
|
---|
430 | WORD nCopies;
|
---|
431 | HINSTANCE16 hInstance;
|
---|
432 | LPARAM lCustData;
|
---|
433 | LPPRINTHOOKPROC16 lpfnPrintHook;
|
---|
434 | LPSETUPHOOKPROC16 lpfnSetupHook;
|
---|
435 | SEGPTR lpPrintTemplateName;
|
---|
436 | SEGPTR lpSetupTemplateName;
|
---|
437 | HGLOBAL16 hPrintTemplate;
|
---|
438 | HGLOBAL16 hSetupTemplate;
|
---|
439 | } PRINTDLG16, *LPPRINTDLG16;
|
---|
440 |
|
---|
441 | typedef struct tagPDA
|
---|
442 | {
|
---|
443 | DWORD lStructSize;
|
---|
444 | HWND hwndOwner;
|
---|
445 | HGLOBAL hDevMode;
|
---|
446 | HGLOBAL hDevNames;
|
---|
447 | HDC hDC;
|
---|
448 | DWORD Flags;
|
---|
449 | WORD nFromPage;
|
---|
450 | WORD nToPage;
|
---|
451 | WORD nMinPage;
|
---|
452 | WORD nMaxPage;
|
---|
453 | WORD nCopies;
|
---|
454 | HINSTANCE hInstance;
|
---|
455 | LPARAM lCustData;
|
---|
456 | LPPRINTHOOKPROC lpfnPrintHook;
|
---|
457 | LPSETUPHOOKPROC lpfnSetupHook;
|
---|
458 | LPCSTR lpPrintTemplateName;
|
---|
459 | LPCSTR lpSetupTemplateName;
|
---|
460 | HGLOBAL hPrintTemplate;
|
---|
461 | HGLOBAL hSetupTemplate;
|
---|
462 | } PRINTDLGA, *LPPRINTDLGA;
|
---|
463 |
|
---|
464 | typedef struct tagPDW
|
---|
465 | {
|
---|
466 | DWORD lStructSize;
|
---|
467 | HWND hwndOwner;
|
---|
468 | HGLOBAL hDevMode;
|
---|
469 | HGLOBAL hDevNames;
|
---|
470 | HDC hDC;
|
---|
471 | DWORD Flags;
|
---|
472 | WORD nFromPage;
|
---|
473 | WORD nToPage;
|
---|
474 | WORD nMinPage;
|
---|
475 | WORD nMaxPage;
|
---|
476 | WORD nCopies;
|
---|
477 | HINSTANCE hInstance;
|
---|
478 | LPARAM lCustData;
|
---|
479 | LPPRINTHOOKPROC lpfnPrintHook;
|
---|
480 | LPSETUPHOOKPROC lpfnSetupHook;
|
---|
481 | LPCWSTR lpPrintTemplateName;
|
---|
482 | LPCWSTR lpSetupTemplateName;
|
---|
483 | HGLOBAL hPrintTemplate;
|
---|
484 | HGLOBAL hSetupTemplate;
|
---|
485 | } PRINTDLGW, *LPPRINTDLGW;
|
---|
486 |
|
---|
487 | DECL_WINELIB_TYPE_AW(PRINTDLG)
|
---|
488 | DECL_WINELIB_TYPE_AW(LPPRINTDLG)
|
---|
489 |
|
---|
490 | #define PD_ALLPAGES 0x00000000
|
---|
491 | #define PD_SELECTION 0x00000001
|
---|
492 | #define PD_PAGENUMS 0x00000002
|
---|
493 | #define PD_NOSELECTION 0x00000004
|
---|
494 | #define PD_NOPAGENUMS 0x00000008
|
---|
495 | #define PD_COLLATE 0x00000010
|
---|
496 | #define PD_PRINTTOFILE 0x00000020
|
---|
497 | #define PD_PRINTSETUP 0x00000040
|
---|
498 | #define PD_NOWARNING 0x00000080
|
---|
499 | #define PD_RETURNDC 0x00000100
|
---|
500 | #define PD_RETURNIC 0x00000200
|
---|
501 | #define PD_RETURNDEFAULT 0x00000400
|
---|
502 | #define PD_SHOWHELP 0x00000800
|
---|
503 | #define PD_ENABLEPRINTHOOK 0x00001000
|
---|
504 | #define PD_ENABLESETUPHOOK 0x00002000
|
---|
505 | #define PD_ENABLEPRINTTEMPLATE 0x00004000
|
---|
506 | #define PD_ENABLESETUPTEMPLATE 0x00008000
|
---|
507 | #define PD_ENABLEPRINTTEMPLATEHANDLE 0x00010000
|
---|
508 | #define PD_ENABLESETUPTEMPLATEHANDLE 0x00020000
|
---|
509 | #define PD_USEDEVMODECOPIES 0x00040000
|
---|
510 | #define PD_USEDEVMODECOPIESANDCOLLATE 0x00040000
|
---|
511 | #define PD_DISABLEPRINTTOFILE 0x00080000
|
---|
512 | #define PD_HIDEPRINTTOFILE 0x00100000
|
---|
513 |
|
---|
514 | typedef struct {
|
---|
515 | UINT16 wDriverOffset;
|
---|
516 | UINT16 wDeviceOffset;
|
---|
517 | UINT16 wOutputOffset;
|
---|
518 | UINT16 wDefault;
|
---|
519 | } DEVNAMES;
|
---|
520 | typedef DEVNAMES * LPDEVNAMES;
|
---|
521 |
|
---|
522 | #define DN_DEFAULTPRN 0x0001
|
---|
523 |
|
---|
524 | /* PageSetupDlg stuff ... */
|
---|
525 | #define WM_PSD_PAGESETUPDLG (WM_USER )
|
---|
526 | #define WM_PSD_FULLPAGERECT (WM_USER+1)
|
---|
527 | #define WM_PSD_MINMARGINRECT (WM_USER+2)
|
---|
528 | #define WM_PSD_MARGINRECT (WM_USER+3)
|
---|
529 | #define WM_PSD_GREEKTEXTRECT (WM_USER+4)
|
---|
530 | #define WM_PSD_ENVSTAMPRECT (WM_USER+5)
|
---|
531 | #define WM_PSD_YAFULLPAGERECT (WM_USER+6)
|
---|
532 |
|
---|
533 | typedef UINT (* CALLBACK LPPAGEPAINTHOOK)( HWND, UINT, WPARAM, LPARAM );
|
---|
534 | typedef UINT (* CALLBACK LPPAGESETUPHOOK)( HWND, UINT, WPARAM, LPARAM );
|
---|
535 |
|
---|
536 | typedef struct tagPSDA
|
---|
537 | {
|
---|
538 | DWORD lStructSize;
|
---|
539 | HWND hwndOwner;
|
---|
540 | HGLOBAL hDevMode;
|
---|
541 | HGLOBAL hDevNames;
|
---|
542 | DWORD Flags;
|
---|
543 | POINT ptPaperSize;
|
---|
544 | RECT rtMinMargin;
|
---|
545 | RECT rtMargin;
|
---|
546 | HINSTANCE hInstance;
|
---|
547 | LPARAM lCustData;
|
---|
548 | LPPAGESETUPHOOK lpfnPageSetupHook;
|
---|
549 | LPPAGEPAINTHOOK lpfnPagePaintHook;
|
---|
550 | LPCSTR lpPageSetupTemplateName;
|
---|
551 | HGLOBAL hPageSetupTemplate;
|
---|
552 | } PAGESETUPDLGA,*LPPAGESETUPDLGA;
|
---|
553 |
|
---|
554 | typedef struct tagPSDW
|
---|
555 | {
|
---|
556 | DWORD lStructSize;
|
---|
557 | HWND hwndOwner;
|
---|
558 | HGLOBAL hDevMode;
|
---|
559 | HGLOBAL hDevNames;
|
---|
560 | DWORD Flags;
|
---|
561 | POINT ptPaperSize;
|
---|
562 | RECT rtMinMargin;
|
---|
563 | RECT rtMargin;
|
---|
564 | HINSTANCE hInstance;
|
---|
565 | LPARAM lCustData;
|
---|
566 | LPPAGESETUPHOOK lpfnPageSetupHook;
|
---|
567 | LPPAGEPAINTHOOK lpfnPagePaintHook;
|
---|
568 | LPCWSTR lpPageSetupTemplateName;
|
---|
569 | HGLOBAL hPageSetupTemplate;
|
---|
570 | } PAGESETUPDLGW,*LPPAGESETUPDLGW;
|
---|
571 | DECL_WINELIB_TYPE_AW(PAGESETUPDLG)
|
---|
572 | DECL_WINELIB_TYPE_AW(LPPAGESETUPDLG)
|
---|
573 |
|
---|
574 | #define PSD_DEFAULTMINMARGINS 0x00000000
|
---|
575 | #define PSD_INWININIINTLMEASURE 0x00000000
|
---|
576 |
|
---|
577 | #define PSD_MINMARGINS 0x00000001
|
---|
578 | #define PSD_MARGINS 0x00000002
|
---|
579 | #define PSD_INTHOUSANDTHSOFINCHES 0x00000004
|
---|
580 | #define PSD_INHUNDREDTHSOFMILLIMETERS 0x00000008
|
---|
581 | #define PSD_DISABLEMARGINS 0x00000010
|
---|
582 | #define PSD_DISABLEPRINTER 0x00000020
|
---|
583 | #define PSD_NOWARNING 0x00000080
|
---|
584 | #define PSD_DISABLEORIENTATION 0x00000100
|
---|
585 | #define PSD_RETURNDEFAULT 0x00000400
|
---|
586 | #define PSD_DISABLEPAPER 0x00000200
|
---|
587 | #define PSD_SHOWHELP 0x00000800
|
---|
588 | #define PSD_ENABLEPAGESETUPHOOK 0x00002000
|
---|
589 | #define PSD_ENABLEPAGESETUPTEMPLATE 0x00008000
|
---|
590 | #define PSD_ENABLEPAGESETUPTEMPLATEHANDLE 0x00020000
|
---|
591 | #define PSD_ENABLEPAGEPAINTHOOK 0x00040000
|
---|
592 | #define PSD_DISABLEPAGEPAINTING 0x00080000
|
---|
593 |
|
---|
594 | #define CommDlg_OpenSave_GetSpecA(_hdlg, _psz, _cbmax) \
|
---|
595 | (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
|
---|
596 | #define CommDlg_OpenSave_GetSpecW(_hdlg, _psz, _cbmax) \
|
---|
597 | (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
|
---|
598 | #define CommDlg_OpenSave_GetSpec WINELIB_NAME_AW(CommDlg_OpenSave_GetSpec)
|
---|
599 |
|
---|
600 | // lParam = pointer to a string
|
---|
601 | // wParam = ID of control to change
|
---|
602 | // return = not used
|
---|
603 | #define CDM_SETCONTROLTEXT (CDM_FIRST + 0x0004)
|
---|
604 | #define CommDlg_OpenSave_SetControlText(_hdlg, _id, _text) \
|
---|
605 | (void)SNDMSG(_hdlg, CDM_SETCONTROLTEXT, (WPARAM)_id, (LPARAM)(LPSTR)_text)
|
---|
606 |
|
---|
607 | BOOL16 WINAPI ChooseColor16(LPCHOOSECOLOR16 lpChCol);
|
---|
608 | BOOL WINAPI ChooseColorA(LPCHOOSECOLORA lpChCol);
|
---|
609 | BOOL WINAPI ChooseColorW(LPCHOOSECOLORW lpChCol);
|
---|
610 | #define ChooseColor WINELIB_NAME_AW(ChooseColor)
|
---|
611 | DWORD WINAPI CommDlgExtendedError(void);
|
---|
612 | HWND16 WINAPI FindText16( SEGPTR find);
|
---|
613 | HWND WINAPI FindTextA(LPFINDREPLACEA lpFind);
|
---|
614 | HWND WINAPI FindTextW(LPFINDREPLACEW lpFind);
|
---|
615 | #define FindText WINELIB_NAME_AW(FindText)
|
---|
616 | INT16 WINAPI GetFileTitle16(LPCSTR lpFile, LPSTR lpTitle, UINT16 cbBuf);
|
---|
617 | INT16 WINAPI GetFileTitleA(LPCSTR lpFile, LPSTR lpTitle, UINT cbBuf);
|
---|
618 | INT16 WINAPI GetFileTitleW(LPCWSTR lpFile, LPWSTR lpTitle, UINT cbBuf);
|
---|
619 | #define GetFileTitle WINELIB_NAME_AW(GetFileTitle)
|
---|
620 | BOOL16 WINAPI GetOpenFileName16(SEGPTR ofn);
|
---|
621 | BOOL WINAPI GetOpenFileNameA(LPOPENFILENAMEA ofn);
|
---|
622 | BOOL WINAPI GetOpenFileNameW(LPOPENFILENAMEW ofn);
|
---|
623 | BOOL WINAPI GetFileDialog95A(LPOPENFILENAMEA ofn,UINT iDlgType);
|
---|
624 | BOOL WINAPI GetFileDialog95W(LPOPENFILENAMEW ofn,UINT iDlgType);
|
---|
625 | #define GetOpenFileName WINELIB_NAME_AW(GetOpenFileName)
|
---|
626 | BOOL16 WINAPI GetSaveFileName16(SEGPTR ofn);
|
---|
627 | BOOL WINAPI GetSaveFileNameA(LPOPENFILENAMEA ofn);
|
---|
628 | BOOL WINAPI GetSaveFileNameW(LPOPENFILENAMEW ofn);
|
---|
629 | #define GetSaveFileName WINELIB_NAME_AW(GetSaveFileName)
|
---|
630 | BOOL WINAPI PageSetupDlgA( LPPAGESETUPDLGA );
|
---|
631 | BOOL WINAPI PageSetupDlgW( LPPAGESETUPDLGW );
|
---|
632 | #define PageSetupDlg WINELIB_NAME_AW(PageSetupDlg)
|
---|
633 | BOOL16 WINAPI PrintDlg16( SEGPTR print);
|
---|
634 | BOOL WINAPI PrintDlgA( LPPRINTDLGA printdlg);
|
---|
635 | BOOL WINAPI PrintDlgW( LPPRINTDLGW printdlg);
|
---|
636 | #define PrintDlg WINELIB_NAME_AW(PrintDlg)
|
---|
637 | HWND16 WINAPI ReplaceText16( SEGPTR find);
|
---|
638 | HWND WINAPI ReplaceTextA( LPFINDREPLACEA lpFind);
|
---|
639 | HWND WINAPI ReplaceTextW( LPFINDREPLACEW lpFind);
|
---|
640 | #define ReplaceText WINELIB_NAME_AW(ReplaceText)
|
---|
641 | BOOL16 WINAPI ChooseFont16(LPCHOOSEFONT16);
|
---|
642 | BOOL WINAPI ChooseFontA(LPCHOOSEFONTA);
|
---|
643 | BOOL WINAPI ChooseFontW(LPCHOOSEFONTW);
|
---|
644 | #define ChooseFont WINELIB_NAME_AW(ChooseFont)
|
---|
645 | LRESULT WINAPI FileOpenDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam, LPARAM lParam);
|
---|
646 | LRESULT WINAPI FileSaveDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam, LPARAM lParam);
|
---|
647 | LRESULT WINAPI ColorDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam, LPARAM lParam);
|
---|
648 | LRESULT WINAPI FindTextDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam, LPARAM lParam);
|
---|
649 | LRESULT WINAPI ReplaceTextDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam, LPARAM lParam);
|
---|
650 | LRESULT WINAPI PrintDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam, LPARAM lParam);
|
---|
651 | LRESULT WINAPI PrintDlgProcA(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam);
|
---|
652 | LRESULT WINAPI PrintDlgProcW(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam);
|
---|
653 | LRESULT WINAPI PrintSetupDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam, LPARAM lParam);
|
---|
654 | LRESULT WINAPI FormatCharDlgProc16(HWND16,UINT16,WPARAM16,LPARAM);
|
---|
655 | LRESULT WINAPI FormatCharDlgProcA(HWND,UINT,WPARAM,LPARAM);
|
---|
656 | LRESULT WINAPI FormatCharDlgProcW(HWND,UINT,WPARAM,LPARAM);
|
---|
657 | #define FormatCharDlgProc WINELIB_NAME_AW(FormatCharDlgProc)
|
---|
658 |
|
---|
659 | void COMDLG32_SetCommDlgExtendedError(DWORD err);
|
---|
660 |
|
---|
661 |
|
---|
662 | #include "poppack.h"
|
---|
663 |
|
---|
664 | #ifdef __cplusplus
|
---|
665 | }
|
---|
666 | #endif
|
---|
667 |
|
---|
668 | #endif /* __WINE_COMMDLG_H */
|
---|