blob: 2f805d88a98331cd82d0df66ac34b29203138172 [file] [log] [blame]
Alexandre Julliard3a405ba1994-10-30 16:25:19 +00001/*
2 * COMMDLG - Common Wine Dialog ... :-)
3 */
4
Alexandre Julliard1e9ac791996-06-06 18:38:27 +00005#ifndef __WINE_COMMDLG_H
6#define __WINE_COMMDLG_H
7
8#ifdef __cplusplus
9extern "C" {
10#endif
Alexandre Julliard3a405ba1994-10-30 16:25:19 +000011
Jim Aston2e1cafa1999-03-14 16:35:05 +000012#include "windef.h" /* needed for CHOOSEFONT structure */
Paul Quinnea1640f1999-03-10 18:03:53 +000013#include "winuser.h"
Klaas van Gendb24a67f1999-05-02 11:22:50 +000014#include "pshpack1.h"
Alexandre Julliard1285c2f1996-05-06 16:06:24 +000015
Alexandre Julliard3a405ba1994-10-30 16:25:19 +000016#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
Jim Aston10141fe1999-04-25 12:31:20 +000033#define OFN_NONETWORKBUTTON 0x00020000
Alexandre Julliard60ce85c1998-02-01 18:33:27 +000034#define OFN_NOLONGNAMES 0x00040000
35#define OFN_EXPLORER 0x00080000
36#define OFN_NODEREFERENCELINKS 0x00100000
37#define OFN_LONGNAMES 0x00200000
38
39/* WINE internal flags */
Alexandre Julliard33072e11997-06-29 18:08:02 +000040#define OFN_UNICODE 0x40000000 /*to differ between 32W/A hook*/
Alexandre Julliarda3960291999-02-26 11:11:13 +000041#define OFN_WINE 0x80000000 /* comdlg32 */
Alexandre Julliard33072e11997-06-29 18:08:02 +000042
Alexandre Julliard3a405ba1994-10-30 16:25:19 +000043#define OFN_SHAREFALLTHROUGH 2
44#define OFN_SHARENOWARN 1
45#define OFN_SHAREWARN 0
46
Francois Boisvert87b81de1999-07-27 16:20:36 +000047#define SAVE_DIALOG 1
48#define OPEN_DIALOG 2
49
Ulrich Weigandf4b61df1999-07-10 10:15:15 +000050typedef UINT16 (CALLBACK *LPOFNHOOKPROC16)(HWND16,UINT16,WPARAM16,LPARAM);
51typedef UINT (CALLBACK *LPOFNHOOKPROC)(HWND,UINT,WPARAM,LPARAM);
Paul Quinnaaa83061999-06-05 15:23:20 +000052
Alexandre Julliard3a405ba1994-10-30 16:25:19 +000053typedef struct {
54 DWORD lStructSize;
Alexandre Julliardf0cbfa01997-02-15 14:29:56 +000055 HWND16 hwndOwner;
Alexandre Julliardbf9130a1996-10-13 17:45:47 +000056 HINSTANCE16 hInstance;
Alexandre Julliard594997c1995-04-30 10:05:20 +000057 SEGPTR lpstrFilter;
58 SEGPTR lpstrCustomFilter;
Alexandre Julliard3a405ba1994-10-30 16:25:19 +000059 DWORD nMaxCustFilter;
60 DWORD nFilterIndex;
Alexandre Julliard594997c1995-04-30 10:05:20 +000061 SEGPTR lpstrFile;
Alexandre Julliard3a405ba1994-10-30 16:25:19 +000062 DWORD nMaxFile;
Alexandre Julliard594997c1995-04-30 10:05:20 +000063 SEGPTR lpstrFileTitle;
Alexandre Julliard3a405ba1994-10-30 16:25:19 +000064 DWORD nMaxFileTitle;
Alexandre Julliard594997c1995-04-30 10:05:20 +000065 SEGPTR lpstrInitialDir;
66 SEGPTR lpstrTitle;
Alexandre Julliard3a405ba1994-10-30 16:25:19 +000067 DWORD Flags;
Alexandre Julliard21979011997-03-05 08:22:35 +000068 UINT16 nFileOffset;
69 UINT16 nFileExtension;
Alexandre Julliard594997c1995-04-30 10:05:20 +000070 SEGPTR lpstrDefExt;
Alexandre Julliard3a405ba1994-10-30 16:25:19 +000071 LPARAM lCustData;
Paul Quinnaaa83061999-06-05 15:23:20 +000072 LPOFNHOOKPROC16 lpfnHook;
Alexandre Julliard594997c1995-04-30 10:05:20 +000073 SEGPTR lpTemplateName;
Alexandre Julliard33072e11997-06-29 18:08:02 +000074} OPENFILENAME16,*LPOPENFILENAME16;
Alexandre Julliard3a405ba1994-10-30 16:25:19 +000075
Alexandre Julliard33072e11997-06-29 18:08:02 +000076typedef struct {
77 DWORD lStructSize;
Alexandre Julliarda3960291999-02-26 11:11:13 +000078 HWND hwndOwner;
79 HINSTANCE hInstance;
Alexandre Julliard33072e11997-06-29 18:08:02 +000080 LPCSTR lpstrFilter;
81 LPSTR lpstrCustomFilter;
82 DWORD nMaxCustFilter;
83 DWORD nFilterIndex;
84 LPSTR lpstrFile;
85 DWORD nMaxFile;
86 LPSTR lpstrFileTitle;
87 DWORD nMaxFileTitle;
88 LPCSTR lpstrInitialDir;
89 LPCSTR lpstrTitle;
90 DWORD Flags;
91 WORD nFileOffset;
92 WORD nFileExtension;
93 LPCSTR lpstrDefExt;
94 LPARAM lCustData;
Paul Quinnaaa83061999-06-05 15:23:20 +000095 LPOFNHOOKPROC lpfnHook;
Alexandre Julliard33072e11997-06-29 18:08:02 +000096 LPCSTR lpTemplateName;
Alexandre Julliarda3960291999-02-26 11:11:13 +000097} OPENFILENAMEA,*LPOPENFILENAMEA;
Alexandre Julliard33072e11997-06-29 18:08:02 +000098
99typedef struct {
100 DWORD lStructSize;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000101 HWND hwndOwner;
102 HINSTANCE hInstance;
Alexandre Julliard33072e11997-06-29 18:08:02 +0000103 LPCWSTR lpstrFilter;
104 LPWSTR lpstrCustomFilter;
105 DWORD nMaxCustFilter;
106 DWORD nFilterIndex;
107 LPWSTR lpstrFile;
108 DWORD nMaxFile;
109 LPWSTR lpstrFileTitle;
110 DWORD nMaxFileTitle;
111 LPCWSTR lpstrInitialDir;
112 LPCWSTR lpstrTitle;
113 DWORD Flags;
114 WORD nFileOffset;
115 WORD nFileExtension;
116 LPCWSTR lpstrDefExt;
117 LPARAM lCustData;
Paul Quinnaaa83061999-06-05 15:23:20 +0000118 LPOFNHOOKPROC lpfnHook;
Alexandre Julliard33072e11997-06-29 18:08:02 +0000119 LPCWSTR lpTemplateName;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000120} OPENFILENAMEW,*LPOPENFILENAMEW;
Alexandre Julliard33072e11997-06-29 18:08:02 +0000121
Alexandre Julliarda845b881998-06-01 10:44:35 +0000122DECL_WINELIB_TYPE_AW(OPENFILENAME)
123DECL_WINELIB_TYPE_AW(LPOPENFILENAME)
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000124
Paul Quinn1beaae51998-12-15 15:38:36 +0000125typedef struct
126{
127 NMHDR hdr;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000128 LPOPENFILENAMEA lpOFN;
Paul Quinn1beaae51998-12-15 15:38:36 +0000129 LPSTR pszFile;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000130} OFNOTIFYA, *LPOFNOTIFYA;
Paul Quinn1beaae51998-12-15 15:38:36 +0000131
132typedef struct
133{
134 NMHDR hdr;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000135 LPOPENFILENAMEW lpOFN;
Paul Quinn1beaae51998-12-15 15:38:36 +0000136 LPWSTR pszFile;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000137} OFNOTIFYW, *LPOFNOTIFYW;
Paul Quinn1beaae51998-12-15 15:38:36 +0000138
139DECL_WINELIB_TYPE_AW(OFNOTIFY)
140DECL_WINELIB_TYPE_AW(LPOFNOTIFY)
141
Paul Quinnaaa83061999-06-05 15:23:20 +0000142typedef UINT16 (CALLBACK *LPCCHOOKPROC16) (HWND16, UINT16, WPARAM16, LPARAM);
Alexandre Julliarda3960291999-02-26 11:11:13 +0000143typedef UINT (CALLBACK *LPCCHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000144
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000145typedef struct {
146 DWORD lStructSize;
Alexandre Julliardf0cbfa01997-02-15 14:29:56 +0000147 HWND16 hwndOwner;
148 HWND16 hInstance;
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000149 COLORREF rgbResult;
Alexandre Julliard1285c2f1996-05-06 16:06:24 +0000150 COLORREF *lpCustColors;
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000151 DWORD Flags;
152 LPARAM lCustData;
Paul Quinnaaa83061999-06-05 15:23:20 +0000153 LPCCHOOKPROC16 lpfnHook;
Alexandre Julliard1e9ac791996-06-06 18:38:27 +0000154 SEGPTR lpTemplateName;
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000155} CHOOSECOLOR16;
156typedef CHOOSECOLOR16 *LPCHOOSECOLOR16;
157
158typedef struct {
159 DWORD lStructSize;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000160 HWND hwndOwner;
161 HWND hInstance;
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000162 DWORD rgbResult;
163 LPDWORD lpCustColors;
164 DWORD Flags;
165 DWORD lCustData;
166 LPCCHOOKPROC lpfnHook;
167 LPCSTR lpTemplateName;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000168} CHOOSECOLORA;
169typedef CHOOSECOLORA *LPCHOOSECOLORA;
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000170
171typedef struct {
172 DWORD lStructSize;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000173 HWND hwndOwner;
174 HWND hInstance;
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000175 DWORD rgbResult;
176 LPDWORD *lpCustColors;
177 DWORD Flags;
178 DWORD lCustData;
179 LPCCHOOKPROC lpfnHook;
180 LPCWSTR lpTemplateName;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000181} CHOOSECOLORW;
182typedef CHOOSECOLORW *LPCHOOSECOLORW;
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000183
Alexandre Julliarda845b881998-06-01 10:44:35 +0000184DECL_WINELIB_TYPE_AW(CHOOSECOLOR)
185DECL_WINELIB_TYPE_AW(LPCHOOSECOLOR)
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000186
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000187
188#define CC_RGBINIT 0x00000001
189#define CC_FULLOPEN 0x00000002
190#define CC_PREVENTFULLOPEN 0x00000004
191#define CC_SHOWHELP 0x00000008
192#define CC_ENABLEHOOK 0x00000010
193#define CC_ENABLETEMPLATE 0x00000020
194#define CC_ENABLETEMPLATEHANDLE 0x00000040
195
Ulrich Weigandf4b61df1999-07-10 10:15:15 +0000196typedef UINT16 (CALLBACK *LPFRHOOKPROC16)(HWND16,UINT16,WPARAM16,LPARAM);
197typedef UINT (CALLBACK *LPFRHOOKPROC)(HWND,UINT,WPARAM,LPARAM);
Paul Quinnaaa83061999-06-05 15:23:20 +0000198
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000199typedef struct {
200 DWORD lStructSize; /* size of this struct 0x20 */
Alexandre Julliardf0cbfa01997-02-15 14:29:56 +0000201 HWND16 hwndOwner; /* handle to owner's window */
Alexandre Julliardbf9130a1996-10-13 17:45:47 +0000202 HINSTANCE16 hInstance; /* instance handle of.EXE that */
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000203 /* contains cust. dlg. template */
204 DWORD Flags; /* one or more of the FR_?? */
Alexandre Julliard594997c1995-04-30 10:05:20 +0000205 SEGPTR lpstrFindWhat; /* ptr. to search string */
206 SEGPTR lpstrReplaceWith; /* ptr. to replace string */
Alexandre Julliard21979011997-03-05 08:22:35 +0000207 UINT16 wFindWhatLen; /* size of find buffer */
208 UINT16 wReplaceWithLen; /* size of replace buffer */
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000209 LPARAM lCustData; /* data passed to hook fn. */
Paul Quinnaaa83061999-06-05 15:23:20 +0000210 LPFRHOOKPROC16 lpfnHook;
Alexandre Julliard594997c1995-04-30 10:05:20 +0000211 SEGPTR lpTemplateName; /* custom template name */
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000212 } FINDREPLACE16, *LPFINDREPLACE16;
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000213
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000214typedef struct {
215 DWORD lStructSize;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000216 HWND hwndOwner;
217 HINSTANCE hInstance;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000218
219 DWORD Flags;
220 LPSTR lpstrFindWhat;
221 LPSTR lpstrReplaceWith;
222 WORD wFindWhatLen;
223 WORD wReplaceWithLen;
224 LPARAM lCustData;
Paul Quinnaaa83061999-06-05 15:23:20 +0000225 LPFRHOOKPROC lpfnHook;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000226 LPCSTR lpTemplateName;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000227 } FINDREPLACEA, *LPFINDREPLACEA;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000228
229typedef struct {
230 DWORD lStructSize;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000231 HWND hwndOwner;
232 HINSTANCE hInstance;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000233
234 DWORD Flags;
235 LPWSTR lpstrFindWhat;
236 LPWSTR lpstrReplaceWith;
237 WORD wFindWhatLen;
238 WORD wReplaceWithLen;
239 LPARAM lCustData;
Paul Quinnaaa83061999-06-05 15:23:20 +0000240 LPFRHOOKPROC lpfnHook;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000241 LPCWSTR lpTemplateName;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000242 } FINDREPLACEW, *LPFINDREPLACEW;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000243
Alexandre Julliarda845b881998-06-01 10:44:35 +0000244DECL_WINELIB_TYPE_AW(FINDREPLACE)
245DECL_WINELIB_TYPE_AW(LPFINDREPLACE)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000246
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000247#define FR_DOWN 0x00000001
248#define FR_WHOLEWORD 0x00000002
249#define FR_MATCHCASE 0x00000004
250#define FR_FINDNEXT 0x00000008
251#define FR_REPLACE 0x00000010
252#define FR_REPLACEALL 0x00000020
253#define FR_DIALOGTERM 0x00000040
254#define FR_SHOWHELP 0x00000080
255#define FR_ENABLEHOOK 0x00000100
256#define FR_ENABLETEMPLATE 0x00000200
257#define FR_NOUPDOWN 0x00000400
258#define FR_NOMATCHCASE 0x00000800
259#define FR_NOWHOLEWORD 0x00001000
260#define FR_ENABLETEMPLATEHANDLE 0x00002000
261#define FR_HIDEUPDOWN 0x00004000
262#define FR_HIDEMATCHCASE 0x00008000
263#define FR_HIDEWHOLEWORD 0x00010000
264
Ulrich Weigandf4b61df1999-07-10 10:15:15 +0000265typedef UINT16 (CALLBACK *LPCFHOOKPROC16)(HWND16,UINT16,WPARAM16,LPARAM);
266typedef UINT (CALLBACK *LPCFHOOKPROC)(HWND,UINT,WPARAM,LPARAM);
Paul Quinnaaa83061999-06-05 15:23:20 +0000267
Alexandre Julliard54c27111998-03-29 19:44:57 +0000268typedef struct
269{
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000270 DWORD lStructSize;
Alexandre Julliardf0cbfa01997-02-15 14:29:56 +0000271 HWND16 hwndOwner; /* caller's window handle */
Alexandre Julliard530ee841996-10-23 16:59:13 +0000272 HDC16 hDC; /* printer DC/IC or NULL */
Alexandre Julliard594997c1995-04-30 10:05:20 +0000273 SEGPTR lpLogFont; /* ptr. to a LOGFONT struct */
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000274 short iPointSize; /* 10 * size in points of selected font */
Klaas van Gendb24a67f1999-05-02 11:22:50 +0000275 DWORD Flags; /* enum. type flags */
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000276 COLORREF rgbColors; /* returned text color */
Alexandre Julliard594997c1995-04-30 10:05:20 +0000277 LPARAM lCustData; /* data passed to hook fn. */
Paul Quinnaaa83061999-06-05 15:23:20 +0000278 LPCFHOOKPROC16 lpfnHook;
Alexandre Julliard594997c1995-04-30 10:05:20 +0000279 SEGPTR lpTemplateName; /* custom template name */
Alexandre Julliardbf9130a1996-10-13 17:45:47 +0000280 HINSTANCE16 hInstance; /* instance handle of.EXE that */
Alexandre Julliard1285c2f1996-05-06 16:06:24 +0000281 /* contains cust. dlg. template */
Klaas van Gendb24a67f1999-05-02 11:22:50 +0000282 SEGPTR lpszStyle; /* return the style field here */
Alexandre Julliard1285c2f1996-05-06 16:06:24 +0000283 /* must be LF_FACESIZE or bigger */
Alexandre Julliard21979011997-03-05 08:22:35 +0000284 UINT16 nFontType; /* same value reported to the */
Alexandre Julliard1285c2f1996-05-06 16:06:24 +0000285 /* EnumFonts callback with the */
286 /* extra FONTTYPE_ bits added */
Klaas van Gendb24a67f1999-05-02 11:22:50 +0000287 short nSizeMin; /* minimum pt size allowed & */
288 short nSizeMax; /* max pt size allowed if */
Alexandre Julliard1285c2f1996-05-06 16:06:24 +0000289 /* CF_LIMITSIZE is used */
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000290} CHOOSEFONT16, *LPCHOOSEFONT16;
Alexandre Julliard54c27111998-03-29 19:44:57 +0000291
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000292
Alexandre Julliard54c27111998-03-29 19:44:57 +0000293typedef struct
294{
Alexandre Julliarda3960291999-02-26 11:11:13 +0000295 UINT lStructSize;
296 HWND hwndOwner;
297 HDC hDC;
298 LPLOGFONTA lpLogFont;
299 INT iPointSize;
Pavel Roskin137cd8c1999-03-28 12:33:18 +0000300 DWORD Flags;
Alexandre Julliard54c27111998-03-29 19:44:57 +0000301 COLORREF rgbColors;
302 LPARAM lCustData;
Paul Quinnaaa83061999-06-05 15:23:20 +0000303 LPCFHOOKPROC lpfnHook;
Alexandre Julliard54c27111998-03-29 19:44:57 +0000304 LPCSTR lpTemplateName;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000305 HINSTANCE hInstance;
Alexandre Julliard54c27111998-03-29 19:44:57 +0000306 LPSTR lpszStyle;
307 UINT16 nFontType;
308 UINT16 ___MISSING_ALIGNMENT__;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000309 INT nSizeMin;
310 INT nSizeMax;
311} CHOOSEFONTA, *LPCHOOSEFONTA;
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000312
313typedef struct
314{
Alexandre Julliarda3960291999-02-26 11:11:13 +0000315 UINT lStructSize;
316 HWND hwndOwner;
317 HDC hDC;
318 LPLOGFONTW lpLogFont;
319 INT iPointSize;
Pavel Roskin137cd8c1999-03-28 12:33:18 +0000320 DWORD Flags;
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000321 COLORREF rgbColors;
322 LPARAM lCustData;
Paul Quinnaaa83061999-06-05 15:23:20 +0000323 LPCFHOOKPROC lpfnHook;
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000324 LPCWSTR lpTemplateName;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000325 HINSTANCE hInstance;
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000326 LPWSTR lpszStyle;
327 UINT16 nFontType;
328 UINT16 ___MISSING_ALIGNMENT__;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000329 INT nSizeMin;
330 INT nSizeMax;
331} CHOOSEFONTW, *LPCHOOSEFONTW;
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000332
Alexandre Julliarda845b881998-06-01 10:44:35 +0000333DECL_WINELIB_TYPE_AW(CHOOSEFONT)
334DECL_WINELIB_TYPE_AW(LPCHOOSEFONT)
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000335
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000336#define CF_SCREENFONTS 0x00000001
337#define CF_PRINTERFONTS 0x00000002
338#define CF_BOTH (CF_SCREENFONTS | CF_PRINTERFONTS)
339#define CF_SHOWHELP 0x00000004L
340#define CF_ENABLEHOOK 0x00000008L
341#define CF_ENABLETEMPLATE 0x00000010L
342#define CF_ENABLETEMPLATEHANDLE 0x00000020L
343#define CF_INITTOLOGFONTSTRUCT 0x00000040L
344#define CF_USESTYLE 0x00000080L
345#define CF_EFFECTS 0x00000100L
346#define CF_APPLY 0x00000200L
347#define CF_ANSIONLY 0x00000400L
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000348#define CF_SCRIPTSONLY CF_ANSIONLY
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000349#define CF_NOVECTORFONTS 0x00000800L
350#define CF_NOOEMFONTS CF_NOVECTORFONTS
351#define CF_NOSIMULATIONS 0x00001000L
352#define CF_LIMITSIZE 0x00002000L
353#define CF_FIXEDPITCHONLY 0x00004000L
354#define CF_WYSIWYG 0x00008000L /* use with CF_SCREENFONTS & CF_PRINTERFONTS */
355#define CF_FORCEFONTEXIST 0x00010000L
356#define CF_SCALABLEONLY 0x00020000L
357#define CF_TTONLY 0x00040000L
358#define CF_NOFACESEL 0x00080000L
359#define CF_NOSTYLESEL 0x00100000L
360#define CF_NOSIZESEL 0x00200000L
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000361#define CF_SELECTSCRIPT 0x00400000L
362#define CF_NOSCRIPTSEL 0x00800000L
363#define CF_NOVERTFONTS 0x01000000L
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000364
365#define SIMULATED_FONTTYPE 0x8000
366#define PRINTER_FONTTYPE 0x4000
367#define SCREEN_FONTTYPE 0x2000
368#define BOLD_FONTTYPE 0x0100
369#define ITALIC_FONTTYPE 0x0200
370#define REGULAR_FONTTYPE 0x0400
371
372#define WM_CHOOSEFONT_GETLOGFONT (WM_USER + 1)
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000373#define WM_CHOOSEFONT_SETLOGFONT (WM_USER + 101)
374#define WM_CHOOSEFONT_SETFLAGS (WM_USER + 102)
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000375
376#define LBSELCHSTRING "commdlg_LBSelChangedNotify"
377#define SHAREVISTRING "commdlg_ShareViolation"
378#define FILEOKSTRING "commdlg_FileNameOK"
379#define COLOROKSTRING "commdlg_ColorOK"
380#define SETRGBSTRING "commdlg_SetRGBColor"
381#define FINDMSGSTRING "commdlg_FindReplace"
382#define HELPMSGSTRING "commdlg_help"
383
384#define CD_LBSELNOITEMS -1
385#define CD_LBSELCHANGE 0
386#define CD_LBSELSUB 1
387#define CD_LBSELADD 2
388
Paul Quinn1beaae51998-12-15 15:38:36 +0000389#define CDN_FIRST (0U-601U)
390#define CDN_LAST (0U-699U)
391
392#define CDN_INITDONE (CDN_FIRST - 0x0000)
393#define CDN_SELCHANGE (CDN_FIRST - 0x0001)
394#define CDN_FOLDERCHANGE (CDN_FIRST - 0x0002)
395#define CDN_SHAREVIOLATION (CDN_FIRST - 0x0003)
396#define CDN_HELP (CDN_FIRST - 0x0004)
397#define CDN_FILEOK (CDN_FIRST - 0x0005)
398#define CDN_TYPECHANGE (CDN_FIRST - 0x0006)
399
400#define CDM_FIRST (WM_USER + 100)
401#define CDM_LAST (WM_USER + 200)
402
403#define CDM_GETSPEC (CDM_FIRST + 0x0000)
404#define CDM_GETFILEPATH (CDM_FIRST + 0x0001)
405#define CDM_GETFOLDERPATH (CDM_FIRST + 0x0002)
406#define CDM_GETFOLDERLIST (CDM_FIRST + 0x0003)
407#define CDM_SETCONTROLTEXT (CDM_FIRST + 0x0004)
408#define CDM_HIDECONTROL (CDM_FIRST + 0x0005)
409#define CDM_SETDEFEXT (CDM_FIRST + 0x0006)
410
Michael Cardenas6a52a502000-02-07 17:22:01 +0000411
412/* Messages to query information from the open or save dialogs */
413
414#define CommDlg_OpenSave_GetSpecA(_hdlg, _psz, _cbmax) \
415 (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
416#define CommDlg_OpenSave_GetSpecW(_hdlg, _psz, _cbmax) \
417 (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
418#define CommDlg_OpenSave_GetSpec WINELIB_NAME_AW(CommDlg_OpenSave_GetSpec)
419
420#define CommDlg_OpenSave_GetFilePathA(_hdlg, _psz, _cbmax) \
421 (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
422#define CommDlg_OpenSave_GetFilePathW(_hdlg, _psz, _cbmax) \
423 (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
424#define CommDlg_OpenSave_GetFilePath WINELIB_NAME_AW(CommDlg_OpenSave_GetFilePath)
425
426#define CommDlg_OpenSave_GetFolderPathA(_hdlg, _psz, _cbmax) \
427 (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
428#define CommDlg_OpenSave_GetFolderPathW(_hdlg, _psz, _cbmax) \
429 (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
430#define CommDlg_OpenSave_GetFolderPath WINELIB_NAME_AW(CommDlg_OpenSave_GetFolderPath)
431
432#define CommDlg_OpenSave_GetFolderIDList(_hdlg, _pidl, _cbmax) \
433 (int)SNDMSG(_hdlg, CDM_GETFOLDERIDLIST, (WPARAM)_cbmax, (LPARAM)(LPVOID)_pidl)
434
435#define CommDlg_OpenSave_SetControlText(_hdlg, _id, _text) \
436 (void)SNDMSG(_hdlg, CDM_SETCONTROLTEXT, (WPARAM)_id, (LPARAM)(LPSTR)_text)
437
438#define CommDlg_OpenSave_HideControl(_hdlg, _id) \
439 (void)SNDMSG(_hdlg, CDM_HIDECONTROL, (WPARAM)_id, 0)
440
441#define CommDlg_OpenSave_SetDefExt(_hdlg, _pszext) \
442 (void)SNDMSG(_hdlg, CDM_SETDEFEXT, 0, (LPARAM)(LPSTR)_pszext)
443
444
Paul Quinnaaa83061999-06-05 15:23:20 +0000445typedef UINT16 (CALLBACK *LPPRINTHOOKPROC16) (HWND16, UINT16, WPARAM16, LPARAM);
446typedef UINT (CALLBACK *LPPRINTHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
447
448typedef UINT16 (CALLBACK *LPSETUPHOOKPROC16) (HWND16, UINT16, WPARAM16, LPARAM);
449typedef UINT (CALLBACK *LPSETUPHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
450
Alexandre Julliard17216f51997-10-12 16:30:17 +0000451typedef struct
452{
453 DWORD lStructSize;
454 HWND16 hwndOwner;
455 HGLOBAL16 hDevMode;
456 HGLOBAL16 hDevNames;
457 HDC16 hDC;
458 DWORD Flags;
459 WORD nFromPage;
460 WORD nToPage;
461 WORD nMinPage;
462 WORD nMaxPage;
463 WORD nCopies;
464 HINSTANCE16 hInstance;
465 LPARAM lCustData;
Paul Quinnaaa83061999-06-05 15:23:20 +0000466 LPPRINTHOOKPROC16 lpfnPrintHook;
467 LPSETUPHOOKPROC16 lpfnSetupHook;
Alexandre Julliard17216f51997-10-12 16:30:17 +0000468 SEGPTR lpPrintTemplateName;
469 SEGPTR lpSetupTemplateName;
470 HGLOBAL16 hPrintTemplate;
471 HGLOBAL16 hSetupTemplate;
472} PRINTDLG16, *LPPRINTDLG16;
473
Paul Quinn1beaae51998-12-15 15:38:36 +0000474typedef struct tagPDA
Alexandre Julliard17216f51997-10-12 16:30:17 +0000475{
476 DWORD lStructSize;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000477 HWND hwndOwner;
478 HGLOBAL hDevMode;
479 HGLOBAL hDevNames;
480 HDC hDC;
Alexandre Julliard17216f51997-10-12 16:30:17 +0000481 DWORD Flags;
482 WORD nFromPage;
483 WORD nToPage;
484 WORD nMinPage;
485 WORD nMaxPage;
486 WORD nCopies;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000487 HINSTANCE hInstance;
Alexandre Julliard17216f51997-10-12 16:30:17 +0000488 LPARAM lCustData;
489 LPPRINTHOOKPROC lpfnPrintHook;
490 LPSETUPHOOKPROC lpfnSetupHook;
491 LPCSTR lpPrintTemplateName;
492 LPCSTR lpSetupTemplateName;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000493 HGLOBAL hPrintTemplate;
494 HGLOBAL hSetupTemplate;
495} PRINTDLGA, *LPPRINTDLGA;
Alexandre Julliard17216f51997-10-12 16:30:17 +0000496
Paul Quinn1beaae51998-12-15 15:38:36 +0000497typedef struct tagPDW
Alexandre Julliard17216f51997-10-12 16:30:17 +0000498{
499 DWORD lStructSize;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000500 HWND hwndOwner;
501 HGLOBAL hDevMode;
502 HGLOBAL hDevNames;
503 HDC hDC;
Alexandre Julliard17216f51997-10-12 16:30:17 +0000504 DWORD Flags;
505 WORD nFromPage;
506 WORD nToPage;
507 WORD nMinPage;
508 WORD nMaxPage;
509 WORD nCopies;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000510 HINSTANCE hInstance;
Alexandre Julliard17216f51997-10-12 16:30:17 +0000511 LPARAM lCustData;
512 LPPRINTHOOKPROC lpfnPrintHook;
513 LPSETUPHOOKPROC lpfnSetupHook;
514 LPCWSTR lpPrintTemplateName;
515 LPCWSTR lpSetupTemplateName;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000516 HGLOBAL hPrintTemplate;
517 HGLOBAL hSetupTemplate;
518} PRINTDLGW, *LPPRINTDLGW;
Alexandre Julliard17216f51997-10-12 16:30:17 +0000519
Alexandre Julliarda845b881998-06-01 10:44:35 +0000520DECL_WINELIB_TYPE_AW(PRINTDLG)
521DECL_WINELIB_TYPE_AW(LPPRINTDLG)
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000522
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000523#define PD_ALLPAGES 0x00000000
524#define PD_SELECTION 0x00000001
525#define PD_PAGENUMS 0x00000002
526#define PD_NOSELECTION 0x00000004
527#define PD_NOPAGENUMS 0x00000008
528#define PD_COLLATE 0x00000010
529#define PD_PRINTTOFILE 0x00000020
530#define PD_PRINTSETUP 0x00000040
531#define PD_NOWARNING 0x00000080
532#define PD_RETURNDC 0x00000100
533#define PD_RETURNIC 0x00000200
534#define PD_RETURNDEFAULT 0x00000400
535#define PD_SHOWHELP 0x00000800
536#define PD_ENABLEPRINTHOOK 0x00001000
537#define PD_ENABLESETUPHOOK 0x00002000
538#define PD_ENABLEPRINTTEMPLATE 0x00004000
539#define PD_ENABLESETUPTEMPLATE 0x00008000
540#define PD_ENABLEPRINTTEMPLATEHANDLE 0x00010000
541#define PD_ENABLESETUPTEMPLATEHANDLE 0x00020000
542#define PD_USEDEVMODECOPIES 0x00040000
Klaas van Gend3d5f2a81999-08-07 12:34:54 +0000543#define PD_USEDEVMODECOPIESANDCOLLATE 0x00040000
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000544#define PD_DISABLEPRINTTOFILE 0x00080000
545#define PD_HIDEPRINTTOFILE 0x00100000
546
547typedef struct {
Alexandre Julliard21979011997-03-05 08:22:35 +0000548 UINT16 wDriverOffset;
549 UINT16 wDeviceOffset;
550 UINT16 wOutputOffset;
551 UINT16 wDefault;
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000552 } DEVNAMES;
553typedef DEVNAMES * LPDEVNAMES;
554
555#define DN_DEFAULTPRN 0x0001
556
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000557/* PageSetupDlg stuff ... */
558#define WM_PSD_PAGESETUPDLG (WM_USER )
559#define WM_PSD_FULLPAGERECT (WM_USER+1)
560#define WM_PSD_MINMARGINRECT (WM_USER+2)
561#define WM_PSD_MARGINRECT (WM_USER+3)
562#define WM_PSD_GREEKTEXTRECT (WM_USER+4)
563#define WM_PSD_ENVSTAMPRECT (WM_USER+5)
564#define WM_PSD_YAFULLPAGERECT (WM_USER+6)
565
Alexandre Julliarda3960291999-02-26 11:11:13 +0000566typedef UINT (CALLBACK* LPPAGEPAINTHOOK)( HWND, UINT, WPARAM, LPARAM );
567typedef UINT (CALLBACK* LPPAGESETUPHOOK)( HWND, UINT, WPARAM, LPARAM );
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000568
Alexandre Julliarda3960291999-02-26 11:11:13 +0000569typedef struct tagPSDA
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000570{
571 DWORD lStructSize;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000572 HWND hwndOwner;
573 HGLOBAL hDevMode;
574 HGLOBAL hDevNames;
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000575 DWORD Flags;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000576 POINT ptPaperSize;
577 RECT rtMinMargin;
578 RECT rtMargin;
579 HINSTANCE hInstance;
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000580 LPARAM lCustData;
581 LPPAGESETUPHOOK lpfnPageSetupHook;
582 LPPAGEPAINTHOOK lpfnPagePaintHook;
583 LPCSTR lpPageSetupTemplateName;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000584 HGLOBAL hPageSetupTemplate;
585} PAGESETUPDLGA,*LPPAGESETUPDLGA;
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000586
Alexandre Julliarda3960291999-02-26 11:11:13 +0000587typedef struct tagPSDW
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000588{
589 DWORD lStructSize;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000590 HWND hwndOwner;
591 HGLOBAL hDevMode;
592 HGLOBAL hDevNames;
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000593 DWORD Flags;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000594 POINT ptPaperSize;
595 RECT rtMinMargin;
596 RECT rtMargin;
597 HINSTANCE hInstance;
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000598 LPARAM lCustData;
599 LPPAGESETUPHOOK lpfnPageSetupHook;
600 LPPAGEPAINTHOOK lpfnPagePaintHook;
601 LPCWSTR lpPageSetupTemplateName;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000602 HGLOBAL hPageSetupTemplate;
603} PAGESETUPDLGW,*LPPAGESETUPDLGW;
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000604DECL_WINELIB_TYPE_AW(PAGESETUPDLG)
605DECL_WINELIB_TYPE_AW(LPPAGESETUPDLG)
606
607#define PSD_DEFAULTMINMARGINS 0x00000000
608#define PSD_INWININIINTLMEASURE 0x00000000
609
610#define PSD_MINMARGINS 0x00000001
611#define PSD_MARGINS 0x00000002
612#define PSD_INTHOUSANDTHSOFINCHES 0x00000004
613#define PSD_INHUNDREDTHSOFMILLIMETERS 0x00000008
614#define PSD_DISABLEMARGINS 0x00000010
615#define PSD_DISABLEPRINTER 0x00000020
616#define PSD_NOWARNING 0x00000080
617#define PSD_DISABLEORIENTATION 0x00000100
618#define PSD_RETURNDEFAULT 0x00000400
619#define PSD_DISABLEPAPER 0x00000200
620#define PSD_SHOWHELP 0x00000800
621#define PSD_ENABLEPAGESETUPHOOK 0x00002000
622#define PSD_ENABLEPAGESETUPTEMPLATE 0x00008000
623#define PSD_ENABLEPAGESETUPTEMPLATEHANDLE 0x00020000
624#define PSD_ENABLEPAGEPAINTHOOK 0x00040000
625#define PSD_DISABLEPAGEPAINTING 0x00080000
626
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000627BOOL16 WINAPI ChooseColor16(LPCHOOSECOLOR16 lpChCol);
Alexandre Julliarda3960291999-02-26 11:11:13 +0000628BOOL WINAPI ChooseColorA(LPCHOOSECOLORA lpChCol);
629BOOL WINAPI ChooseColorW(LPCHOOSECOLORW lpChCol);
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000630#define ChooseColor WINELIB_NAME_AW(ChooseColor)
Alexandre Julliard670cdc41997-08-24 16:00:30 +0000631DWORD WINAPI CommDlgExtendedError(void);
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000632HWND16 WINAPI FindText16( SEGPTR find);
Alexandre Julliarda3960291999-02-26 11:11:13 +0000633HWND WINAPI FindTextA(LPFINDREPLACEA lpFind);
634HWND WINAPI FindTextW(LPFINDREPLACEW lpFind);
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000635#define FindText WINELIB_NAME_AW(FindText)
Alexandre Julliard670cdc41997-08-24 16:00:30 +0000636INT16 WINAPI GetFileTitle16(LPCSTR lpFile, LPSTR lpTitle, UINT16 cbBuf);
Alexandre Julliarda3960291999-02-26 11:11:13 +0000637INT16 WINAPI GetFileTitleA(LPCSTR lpFile, LPSTR lpTitle, UINT cbBuf);
638INT16 WINAPI GetFileTitleW(LPCWSTR lpFile, LPWSTR lpTitle, UINT cbBuf);
Alexandre Julliard33072e11997-06-29 18:08:02 +0000639#define GetFileTitle WINELIB_NAME_AW(GetFileTitle)
Alexandre Julliard670cdc41997-08-24 16:00:30 +0000640BOOL16 WINAPI GetOpenFileName16(SEGPTR ofn);
Alexandre Julliarda3960291999-02-26 11:11:13 +0000641BOOL WINAPI GetOpenFileNameA(LPOPENFILENAMEA ofn);
642BOOL WINAPI GetOpenFileNameW(LPOPENFILENAMEW ofn);
Francois Boisvert87b81de1999-07-27 16:20:36 +0000643BOOL WINAPI GetFileDialog95A(LPOPENFILENAMEA ofn,UINT iDlgType);
644BOOL WINAPI GetFileDialog95W(LPOPENFILENAMEW ofn,UINT iDlgType);
Alexandre Julliard33072e11997-06-29 18:08:02 +0000645#define GetOpenFileName WINELIB_NAME_AW(GetOpenFileName)
Alexandre Julliard670cdc41997-08-24 16:00:30 +0000646BOOL16 WINAPI GetSaveFileName16(SEGPTR ofn);
Alexandre Julliarda3960291999-02-26 11:11:13 +0000647BOOL WINAPI GetSaveFileNameA(LPOPENFILENAMEA ofn);
648BOOL WINAPI GetSaveFileNameW(LPOPENFILENAMEW ofn);
Alexandre Julliard33072e11997-06-29 18:08:02 +0000649#define GetSaveFileName WINELIB_NAME_AW(GetSaveFileName)
Alexandre Julliarda3960291999-02-26 11:11:13 +0000650BOOL WINAPI PageSetupDlgA( LPPAGESETUPDLGA );
651BOOL WINAPI PageSetupDlgW( LPPAGESETUPDLGW );
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000652#define PageSetupDlg WINELIB_NAME_AW(PageSetupDlg)
Huw D M Davies38ffcc31999-10-13 12:29:57 +0000653BOOL16 WINAPI PrintDlg16( LPPRINTDLG16 print);
Alexandre Julliarda3960291999-02-26 11:11:13 +0000654BOOL WINAPI PrintDlgA( LPPRINTDLGA printdlg);
655BOOL WINAPI PrintDlgW( LPPRINTDLGW printdlg);
Uwe Bonnes9fdceb81998-11-08 13:12:49 +0000656#define PrintDlg WINELIB_NAME_AW(PrintDlg)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000657HWND16 WINAPI ReplaceText16( SEGPTR find);
Alexandre Julliarda3960291999-02-26 11:11:13 +0000658HWND WINAPI ReplaceTextA( LPFINDREPLACEA lpFind);
659HWND WINAPI ReplaceTextW( LPFINDREPLACEW lpFind);
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000660#define ReplaceText WINELIB_NAME_AW(ReplaceText)
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000661BOOL16 WINAPI ChooseFont16(LPCHOOSEFONT16);
Alexandre Julliarda3960291999-02-26 11:11:13 +0000662BOOL WINAPI ChooseFontA(LPCHOOSEFONTA);
663BOOL WINAPI ChooseFontW(LPCHOOSEFONTW);
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000664#define ChooseFont WINELIB_NAME_AW(ChooseFont)
Alexandre Julliarda3960291999-02-26 11:11:13 +0000665LRESULT WINAPI FileOpenDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam, LPARAM lParam);
666LRESULT WINAPI FileSaveDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam, LPARAM lParam);
667LRESULT WINAPI ColorDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam, LPARAM lParam);
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000668LRESULT WINAPI FindTextDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam, LPARAM lParam);
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000669LRESULT WINAPI ReplaceTextDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam, LPARAM lParam);
Alexandre Julliarda3960291999-02-26 11:11:13 +0000670LRESULT WINAPI PrintDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam, LPARAM lParam);
Klaas van Gendab1bea11999-02-28 11:10:50 +0000671LRESULT WINAPI PrintDlgProcA(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam);
672LRESULT WINAPI PrintDlgProcW(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam);
Alexandre Julliarda3960291999-02-26 11:11:13 +0000673LRESULT WINAPI PrintSetupDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam, LPARAM lParam);
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000674LRESULT WINAPI FormatCharDlgProc16(HWND16,UINT16,WPARAM16,LPARAM);
Alexandre Julliarda3960291999-02-26 11:11:13 +0000675LRESULT WINAPI FormatCharDlgProcA(HWND,UINT,WPARAM,LPARAM);
676LRESULT WINAPI FormatCharDlgProcW(HWND,UINT,WPARAM,LPARAM);
Alexandre Julliard8da12c41999-01-17 16:55:11 +0000677#define FormatCharDlgProc WINELIB_NAME_AW(FormatCharDlgProc)
Klaas van Gend3c6253b1999-03-15 15:16:54 +0000678
Francois Boisvert87b81de1999-07-27 16:20:36 +0000679void COMDLG32_SetCommDlgExtendedError(DWORD err);
680
Klaas van Gend3c6253b1999-03-15 15:16:54 +0000681
Klaas van Gendb24a67f1999-05-02 11:22:50 +0000682#include "poppack.h"
683
Alexandre Julliard1e9ac791996-06-06 18:38:27 +0000684#ifdef __cplusplus
685}
686#endif
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000687
Alexandre Julliard1e9ac791996-06-06 18:38:27 +0000688#endif /* __WINE_COMMDLG_H */