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