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