blob: cd4dc59f1289d9d0a1bd5b0d9bd79c9e8cc2176a [file] [log] [blame]
Jon Griffiths7a6bad82001-01-22 02:13:58 +00001/*
Alexandre Julliard3a405ba1994-10-30 16:25:19 +00002 * COMMDLG - Common Wine Dialog ... :-)
Alexandre Julliard0799c1a2002-03-09 23:29:33 +00003 *
4 * Copyright (C) the Wine project
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
Jonathan Ernst360a3f92006-05-18 14:49:52 +020018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
Alexandre Julliard3a405ba1994-10-30 16:25:19 +000019 */
20
Alexandre Julliard1e9ac791996-06-06 18:38:27 +000021#ifndef __WINE_COMMDLG_H
22#define __WINE_COMMDLG_H
23
24#ifdef __cplusplus
25extern "C" {
26#endif
Alexandre Julliard3a405ba1994-10-30 16:25:19 +000027
Dimitrie O. Paun53f9c212003-08-28 21:43:34 +000028#include <prsht.h>
29#include <pshpack1.h>
Alexandre Julliard1285c2f1996-05-06 16:06:24 +000030
György 'Nog' Jeneyba060422002-09-30 18:51:33 +000031#ifndef SNDMSG
32#ifdef __cplusplus
33#define SNDMSG ::SendMessage
34#else /* __cplusplus */
35#define SNDMSG SendMessage
36#endif /* __cplusplus */
37#endif /* SNDMSG */
38
Alexandre Julliard3a405ba1994-10-30 16:25:19 +000039#define OFN_READONLY 0x00000001
40#define OFN_OVERWRITEPROMPT 0x00000002
41#define OFN_HIDEREADONLY 0x00000004
42#define OFN_NOCHANGEDIR 0x00000008
43#define OFN_SHOWHELP 0x00000010
44#define OFN_ENABLEHOOK 0x00000020
45#define OFN_ENABLETEMPLATE 0x00000040
46#define OFN_ENABLETEMPLATEHANDLE 0x00000080
47#define OFN_NOVALIDATE 0x00000100
48#define OFN_ALLOWMULTISELECT 0x00000200
49#define OFN_EXTENSIONDIFFERENT 0x00000400
50#define OFN_PATHMUSTEXIST 0x00000800
51#define OFN_FILEMUSTEXIST 0x00001000
52#define OFN_CREATEPROMPT 0x00002000
53#define OFN_SHAREAWARE 0x00004000
54#define OFN_NOREADONLYRETURN 0x00008000
55#define OFN_NOTESTFILECREATE 0x00010000
Vincent Béron9a624912002-05-31 23:06:46 +000056#define OFN_NONETWORKBUTTON 0x00020000
Alexandre Julliard60ce85c1998-02-01 18:33:27 +000057#define OFN_NOLONGNAMES 0x00040000
58#define OFN_EXPLORER 0x00080000
59#define OFN_NODEREFERENCELINKS 0x00100000
60#define OFN_LONGNAMES 0x00200000
Francois Gougetafddcfd2000-09-27 22:31:28 +000061#define OFN_ENABLEINCLUDENOTIFY 0x00400000
62#define OFN_ENABLESIZING 0x00800000
Juergen Schmiedebcc72c2000-11-01 01:50:21 +000063#define OFN_DONTADDTORECENT 0x02000000
64#define OFN_FORCESHOWHIDDEN 0x10000000
Alexandre Julliard60ce85c1998-02-01 18:33:27 +000065
Alexandre Julliard3a405ba1994-10-30 16:25:19 +000066#define OFN_SHAREFALLTHROUGH 2
67#define OFN_SHARENOWARN 1
68#define OFN_SHAREWARN 0
69
Francois Boisvert87b81de1999-07-27 16:20:36 +000070#define SAVE_DIALOG 1
71#define OPEN_DIALOG 2
Vincent Béron9a624912002-05-31 23:06:46 +000072
Patrik Stridvallf94462f2002-01-31 23:22:07 +000073typedef UINT (CALLBACK *LPOFNHOOKPROC)(HWND,UINT,WPARAM,LPARAM);
Paul Quinnaaa83061999-06-05 15:23:20 +000074
Jon Griffiths880c0c82004-05-27 20:00:51 +000075typedef struct tagOFNA {
Alexandre Julliard3a405ba1994-10-30 16:25:19 +000076 DWORD lStructSize;
Alexandre Julliarda3960291999-02-26 11:11:13 +000077 HWND hwndOwner;
78 HINSTANCE hInstance;
Alexandre Julliard33072e11997-06-29 18:08:02 +000079 LPCSTR lpstrFilter;
80 LPSTR lpstrCustomFilter;
81 DWORD nMaxCustFilter;
82 DWORD nFilterIndex;
83 LPSTR lpstrFile;
84 DWORD nMaxFile;
85 LPSTR lpstrFileTitle;
86 DWORD nMaxFileTitle;
87 LPCSTR lpstrInitialDir;
88 LPCSTR lpstrTitle;
89 DWORD Flags;
90 WORD nFileOffset;
91 WORD nFileExtension;
92 LPCSTR lpstrDefExt;
93 LPARAM lCustData;
Paul Quinnaaa83061999-06-05 15:23:20 +000094 LPOFNHOOKPROC lpfnHook;
Alexandre Julliard33072e11997-06-29 18:08:02 +000095 LPCSTR lpTemplateName;
Alexandre Julliarda3960291999-02-26 11:11:13 +000096} OPENFILENAMEA,*LPOPENFILENAMEA;
Alexandre Julliard33072e11997-06-29 18:08:02 +000097
Jon Griffiths880c0c82004-05-27 20:00:51 +000098typedef struct tagOFNW {
Alexandre Julliard33072e11997-06-29 18:08:02 +000099 DWORD lStructSize;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000100 HWND hwndOwner;
101 HINSTANCE hInstance;
Alexandre Julliard33072e11997-06-29 18:08:02 +0000102 LPCWSTR lpstrFilter;
103 LPWSTR lpstrCustomFilter;
104 DWORD nMaxCustFilter;
105 DWORD nFilterIndex;
106 LPWSTR lpstrFile;
107 DWORD nMaxFile;
108 LPWSTR lpstrFileTitle;
109 DWORD nMaxFileTitle;
110 LPCWSTR lpstrInitialDir;
111 LPCWSTR lpstrTitle;
112 DWORD Flags;
113 WORD nFileOffset;
114 WORD nFileExtension;
115 LPCWSTR lpstrDefExt;
116 LPARAM lCustData;
Paul Quinnaaa83061999-06-05 15:23:20 +0000117 LPOFNHOOKPROC lpfnHook;
Alexandre Julliard33072e11997-06-29 18:08:02 +0000118 LPCWSTR lpTemplateName;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000119} OPENFILENAMEW,*LPOPENFILENAMEW;
Alexandre Julliard33072e11997-06-29 18:08:02 +0000120
Alexandre Julliarda845b881998-06-01 10:44:35 +0000121DECL_WINELIB_TYPE_AW(OPENFILENAME)
122DECL_WINELIB_TYPE_AW(LPOPENFILENAME)
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000123
Kevin Koltzau201da332004-01-08 05:16:23 +0000124#ifndef CDSIZEOF_STRUCT
125#define CDSIZEOF_STRUCT(type,field) ((int)&(((type *)0)->field) + sizeof(((type*)0)->field))
126#endif
127
128#define OPENFILENAME_SIZE_VERSION_400A CDSIZEOF_STRUCT(OPENFILENAMEA,lpTemplateName)
129#define OPENFILENAME_SIZE_VERSION_400W CDSIZEOF_STRUCT(OPENFILENAMEW,lpTemplateName)
130#define OPENFILENAME_SIZE_VERSION_400 WINELIB_NAME_AW(OPENFILENAME_SIZE_VERSION_400)
131
132
Paul Quinn1beaae51998-12-15 15:38:36 +0000133typedef struct
134{
135 NMHDR hdr;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000136 LPOPENFILENAMEA lpOFN;
Paul Quinn1beaae51998-12-15 15:38:36 +0000137 LPSTR pszFile;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000138} OFNOTIFYA, *LPOFNOTIFYA;
Paul Quinn1beaae51998-12-15 15:38:36 +0000139
140typedef struct
141{
142 NMHDR hdr;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000143 LPOPENFILENAMEW lpOFN;
Paul Quinn1beaae51998-12-15 15:38:36 +0000144 LPWSTR pszFile;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000145} OFNOTIFYW, *LPOFNOTIFYW;
Paul Quinn1beaae51998-12-15 15:38:36 +0000146
147DECL_WINELIB_TYPE_AW(OFNOTIFY)
148DECL_WINELIB_TYPE_AW(LPOFNOTIFY)
Vincent Béron9a624912002-05-31 23:06:46 +0000149
Patrik Stridvallf94462f2002-01-31 23:22:07 +0000150typedef UINT (CALLBACK *LPCCHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000151
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000152typedef struct {
153 DWORD lStructSize;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000154 HWND hwndOwner;
François Gouget980eeec2001-01-05 03:45:40 +0000155 HWND hInstance; /* Should be an HINSTANCE but MS made a typo */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000156 DWORD rgbResult;
157 LPDWORD lpCustColors;
158 DWORD Flags;
159 DWORD lCustData;
160 LPCCHOOKPROC lpfnHook;
161 LPCSTR lpTemplateName;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000162} CHOOSECOLORA;
163typedef CHOOSECOLORA *LPCHOOSECOLORA;
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000164
165typedef struct {
166 DWORD lStructSize;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000167 HWND hwndOwner;
François Gouget980eeec2001-01-05 03:45:40 +0000168 HWND hInstance; /* Should be an HINSTANCE but MS made a typo */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000169 DWORD rgbResult;
Gerard Patel73242952000-04-24 17:35:11 +0000170 LPDWORD lpCustColors;
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000171 DWORD Flags;
172 DWORD lCustData;
173 LPCCHOOKPROC lpfnHook;
174 LPCWSTR lpTemplateName;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000175} CHOOSECOLORW;
176typedef CHOOSECOLORW *LPCHOOSECOLORW;
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000177
Alexandre Julliarda845b881998-06-01 10:44:35 +0000178DECL_WINELIB_TYPE_AW(CHOOSECOLOR)
179DECL_WINELIB_TYPE_AW(LPCHOOSECOLOR)
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000180
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000181
182#define CC_RGBINIT 0x00000001
183#define CC_FULLOPEN 0x00000002
184#define CC_PREVENTFULLOPEN 0x00000004
185#define CC_SHOWHELP 0x00000008
186#define CC_ENABLEHOOK 0x00000010
187#define CC_ENABLETEMPLATE 0x00000020
188#define CC_ENABLETEMPLATEHANDLE 0x00000040
Francois Gouget8a21fca2000-11-08 05:02:50 +0000189#define CC_SOLIDCOLOR 0x00000080
190#define CC_ANYCOLOR 0x00000100
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000191
Patrik Stridvallf94462f2002-01-31 23:22:07 +0000192typedef UINT (CALLBACK *LPFRHOOKPROC)(HWND,UINT,WPARAM,LPARAM);
Paul Quinnaaa83061999-06-05 15:23:20 +0000193
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000194typedef struct {
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000195 DWORD lStructSize;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000196 HWND hwndOwner;
197 HINSTANCE hInstance;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000198 DWORD Flags;
199 LPSTR lpstrFindWhat;
200 LPSTR lpstrReplaceWith;
201 WORD wFindWhatLen;
202 WORD wReplaceWithLen;
203 LPARAM lCustData;
Paul Quinnaaa83061999-06-05 15:23:20 +0000204 LPFRHOOKPROC lpfnHook;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000205 LPCSTR lpTemplateName;
Huw D M Daviesb40a9b72000-05-26 22:26:06 +0000206} FINDREPLACEA, *LPFINDREPLACEA;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000207
208typedef struct {
209 DWORD lStructSize;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000210 HWND hwndOwner;
211 HINSTANCE hInstance;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000212 DWORD Flags;
213 LPWSTR lpstrFindWhat;
214 LPWSTR lpstrReplaceWith;
215 WORD wFindWhatLen;
216 WORD wReplaceWithLen;
217 LPARAM lCustData;
Paul Quinnaaa83061999-06-05 15:23:20 +0000218 LPFRHOOKPROC lpfnHook;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000219 LPCWSTR lpTemplateName;
Huw D M Daviesb40a9b72000-05-26 22:26:06 +0000220} FINDREPLACEW, *LPFINDREPLACEW;
Vincent Béron9a624912002-05-31 23:06:46 +0000221
Alexandre Julliarda845b881998-06-01 10:44:35 +0000222DECL_WINELIB_TYPE_AW(FINDREPLACE)
223DECL_WINELIB_TYPE_AW(LPFINDREPLACE)
Vincent Béron9a624912002-05-31 23:06:46 +0000224
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000225#define FR_DOWN 0x00000001
226#define FR_WHOLEWORD 0x00000002
227#define FR_MATCHCASE 0x00000004
228#define FR_FINDNEXT 0x00000008
229#define FR_REPLACE 0x00000010
230#define FR_REPLACEALL 0x00000020
231#define FR_DIALOGTERM 0x00000040
232#define FR_SHOWHELP 0x00000080
233#define FR_ENABLEHOOK 0x00000100
234#define FR_ENABLETEMPLATE 0x00000200
235#define FR_NOUPDOWN 0x00000400
236#define FR_NOMATCHCASE 0x00000800
237#define FR_NOWHOLEWORD 0x00001000
238#define FR_ENABLETEMPLATEHANDLE 0x00002000
239#define FR_HIDEUPDOWN 0x00004000
240#define FR_HIDEMATCHCASE 0x00008000
241#define FR_HIDEWHOLEWORD 0x00010000
Phil Krylov5d8ffdc2003-08-11 18:42:18 +0000242#define FR_MATCHDIAC 0x20000000
243#define FR_MATCHKASHIDA 0x40000000
244#define FR_MATCHALEFHAMZA 0x80000000
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000245
Patrik Stridvallf94462f2002-01-31 23:22:07 +0000246typedef UINT (CALLBACK *LPCFHOOKPROC)(HWND,UINT,WPARAM,LPARAM);
Paul Quinnaaa83061999-06-05 15:23:20 +0000247
Jon Griffiths39bbcb42004-09-20 19:13:16 +0000248typedef struct tagCHOOSEFONTA
Alexandre Julliard54c27111998-03-29 19:44:57 +0000249{
Vincent Béron9a624912002-05-31 23:06:46 +0000250 UINT lStructSize;
251 HWND hwndOwner;
252 HDC hDC;
253 LPLOGFONTA lpLogFont;
254 INT iPointSize;
255 DWORD Flags;
256 COLORREF rgbColors;
257 LPARAM lCustData;
258 LPCFHOOKPROC lpfnHook;
259 LPCSTR lpTemplateName;
260 HINSTANCE hInstance;
261 LPSTR lpszStyle;
262 WORD nFontType;
263 WORD ___MISSING_ALIGNMENT__;
264 INT nSizeMin;
265 INT nSizeMax;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000266} CHOOSEFONTA, *LPCHOOSEFONTA;
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000267
Jon Griffiths39bbcb42004-09-20 19:13:16 +0000268typedef struct tagCHOOSEFONTW
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000269{
Vincent Béron9a624912002-05-31 23:06:46 +0000270 UINT lStructSize;
271 HWND hwndOwner;
272 HDC hDC;
273 LPLOGFONTW lpLogFont;
274 INT iPointSize;
275 DWORD Flags;
276 COLORREF rgbColors;
277 LPARAM lCustData;
278 LPCFHOOKPROC lpfnHook;
279 LPCWSTR lpTemplateName;
280 HINSTANCE hInstance;
281 LPWSTR lpszStyle;
282 WORD nFontType;
283 WORD ___MISSING_ALIGNMENT__;
284 INT nSizeMin;
285 INT nSizeMax;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000286} CHOOSEFONTW, *LPCHOOSEFONTW;
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000287
Alexandre Julliarda845b881998-06-01 10:44:35 +0000288DECL_WINELIB_TYPE_AW(CHOOSEFONT)
289DECL_WINELIB_TYPE_AW(LPCHOOSEFONT)
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000290
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000291#define CF_SCREENFONTS 0x00000001
292#define CF_PRINTERFONTS 0x00000002
293#define CF_BOTH (CF_SCREENFONTS | CF_PRINTERFONTS)
294#define CF_SHOWHELP 0x00000004L
295#define CF_ENABLEHOOK 0x00000008L
296#define CF_ENABLETEMPLATE 0x00000010L
297#define CF_ENABLETEMPLATEHANDLE 0x00000020L
298#define CF_INITTOLOGFONTSTRUCT 0x00000040L
299#define CF_USESTYLE 0x00000080L
300#define CF_EFFECTS 0x00000100L
301#define CF_APPLY 0x00000200L
302#define CF_ANSIONLY 0x00000400L
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000303#define CF_SCRIPTSONLY CF_ANSIONLY
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000304#define CF_NOVECTORFONTS 0x00000800L
305#define CF_NOOEMFONTS CF_NOVECTORFONTS
306#define CF_NOSIMULATIONS 0x00001000L
307#define CF_LIMITSIZE 0x00002000L
308#define CF_FIXEDPITCHONLY 0x00004000L
309#define CF_WYSIWYG 0x00008000L /* use with CF_SCREENFONTS & CF_PRINTERFONTS */
310#define CF_FORCEFONTEXIST 0x00010000L
311#define CF_SCALABLEONLY 0x00020000L
312#define CF_TTONLY 0x00040000L
313#define CF_NOFACESEL 0x00080000L
314#define CF_NOSTYLESEL 0x00100000L
315#define CF_NOSIZESEL 0x00200000L
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000316#define CF_SELECTSCRIPT 0x00400000L
317#define CF_NOSCRIPTSEL 0x00800000L
318#define CF_NOVERTFONTS 0x01000000L
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000319
320#define SIMULATED_FONTTYPE 0x8000
321#define PRINTER_FONTTYPE 0x4000
322#define SCREEN_FONTTYPE 0x2000
323#define BOLD_FONTTYPE 0x0100
324#define ITALIC_FONTTYPE 0x0200
325#define REGULAR_FONTTYPE 0x0400
326
327#define WM_CHOOSEFONT_GETLOGFONT (WM_USER + 1)
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000328#define WM_CHOOSEFONT_SETLOGFONT (WM_USER + 101)
329#define WM_CHOOSEFONT_SETFLAGS (WM_USER + 102)
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000330
Jon Griffiths7a6bad82001-01-22 02:13:58 +0000331#define LBSELCHSTRINGA "commdlg_LBSelChangedNotify"
Dmitry Timoshkova9c057f2002-09-16 19:29:36 +0000332#if defined(__GNUC__)
333# define LBSELCHSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \
334 'L','B','S','e','l','C','h','a','n','g','e','d','N','o','t','i','f','y',0 }
335#elif defined(_MSC_VER)
336# define LBSELCHSTRINGW L"commdlg_LBSelChangedNotify"
337#else
Jon Griffiths7a6bad82001-01-22 02:13:58 +0000338static const WCHAR LBSELCHSTRINGW[] = { 'c','o','m','m','d','l','g','_',
339 'L','B','S','e','l','C','h','a','n','g','e','d','N','o','t','i','f','y',0 };
Dmitry Timoshkova9c057f2002-09-16 19:29:36 +0000340#endif
Jon Griffiths7a6bad82001-01-22 02:13:58 +0000341#define LBSELCHSTRING WINELIB_NAME_AW(LBSELCHSTRING)
342
343#define SHAREVISTRINGA "commdlg_ShareViolation"
Dmitry Timoshkova9c057f2002-09-16 19:29:36 +0000344#if defined(__GNUC__)
345# define SHAREVISTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \
346 'S','h','a','r','e','V','i','o','l','a','t','i','o','n',0 }
347#elif defined(_MSC_VER)
348# define SHAREVISTRINGW L"commdlg_ShareViolation"
349#else
Jon Griffiths7a6bad82001-01-22 02:13:58 +0000350static const WCHAR SHAREVISTRINGW[] = { 'c','o','m','m','d','l','g','_',
351 'S','h','a','r','e','V','i','o','l','a','t','i','o','n',0 };
Dmitry Timoshkova9c057f2002-09-16 19:29:36 +0000352#endif
Jon Griffiths7a6bad82001-01-22 02:13:58 +0000353#define SHAREVISTRING WINELIB_NAME_AW(SHAREVISTRING)
354
355#define FILEOKSTRINGA "commdlg_FileNameOK"
Dmitry Timoshkova9c057f2002-09-16 19:29:36 +0000356#if defined(__GNUC__)
357# define FILEOKSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \
358 'F','i','l','e','N','a','m','e','O','K',0 }
359#elif defined(_MSC_VER)
360# define FILEOKSTRINGW L"commdlg_FileNameOK"
361#else
Jon Griffiths7a6bad82001-01-22 02:13:58 +0000362static const WCHAR FILEOKSTRINGW[] = { 'c','o','m','m','d','l','g','_',
363 'F','i','l','e','N','a','m','e','O','K',0 };
Dmitry Timoshkova9c057f2002-09-16 19:29:36 +0000364#endif
Jon Griffiths7a6bad82001-01-22 02:13:58 +0000365#define FILEOKSTRING WINELIB_NAME_AW(FILEOKSTRING)
366
367#define COLOROKSTRINGA "commdlg_ColorOK"
Dmitry Timoshkova9c057f2002-09-16 19:29:36 +0000368#if defined(__GNUC__)
369# define COLOROKSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \
370 'C','o','l','o','r','O','K',0 }
371#elif defined(_MSC_VER)
372# define COLOROKSTRINGW L"commdlg_ColorOK"
373#else
Jon Griffiths7a6bad82001-01-22 02:13:58 +0000374static const WCHAR COLOROKSTRINGW[] = { 'c','o','m','m','d','l','g','_',
375 'C','o','l','o','r','O','K',0 };
Dmitry Timoshkova9c057f2002-09-16 19:29:36 +0000376#endif
Jon Griffiths7a6bad82001-01-22 02:13:58 +0000377#define COLOROKSTRING WINELIB_NAME_AW(COLOROKSTRING)
378
379#define SETRGBSTRINGA "commdlg_SetRGBColor"
Dmitry Timoshkova9c057f2002-09-16 19:29:36 +0000380#if defined(__GNUC__)
381# define SETRGBSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \
382 'S','e','t','R','G','B','C','o','l','o','r',0 }
383#elif defined(_MSC_VER)
384# define SETRGBSTRINGW L"commdlg_SetRGBColor"
385#else
Jon Griffiths7a6bad82001-01-22 02:13:58 +0000386static const WCHAR SETRGBSTRINGW[] = { 'c','o','m','m','d','l','g','_',
387 'S','e','t','R','G','B','C','o','l','o','r',0 };
Dmitry Timoshkova9c057f2002-09-16 19:29:36 +0000388#endif
Jon Griffiths7a6bad82001-01-22 02:13:58 +0000389#define SETRGBSTRING WINELIB_NAME_AW(SETRGBSTRING)
390
391#define FINDMSGSTRINGA "commdlg_FindReplace"
Dmitry Timoshkova9c057f2002-09-16 19:29:36 +0000392#if defined(__GNUC__)
393# define FINDMSGSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \
394 'F','i','n','d','R','e','p','l','a','c','e',0 }
395#elif defined(_MSC_VER)
396# define FINDMSGSTRINGW L"commdlg_FindReplace"
397#else
Jon Griffiths7a6bad82001-01-22 02:13:58 +0000398static const WCHAR FINDMSGSTRINGW[] = { 'c','o','m','m','d','l','g','_',
399 'F','i','n','d','R','e','p','l','a','c','e',0 };
Dmitry Timoshkova9c057f2002-09-16 19:29:36 +0000400#endif
Jon Griffiths7a6bad82001-01-22 02:13:58 +0000401#define FINDMSGSTRING WINELIB_NAME_AW(FINDMSGSTRING)
402
403#define HELPMSGSTRINGA "commdlg_help"
Dmitry Timoshkova9c057f2002-09-16 19:29:36 +0000404#if defined(__GNUC__)
405# define HELPMSGSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \
406 'H','e','l','p',0 }
407#elif defined(_MSC_VER)
408# define HELPMSGSTRINGW L"commdlg_help"
409#else
Jon Griffiths7a6bad82001-01-22 02:13:58 +0000410static const WCHAR HELPMSGSTRINGW[] = { 'c','o','m','m','d','l','g','_',
411 'H','e','l','p',0 };
Dmitry Timoshkova9c057f2002-09-16 19:29:36 +0000412#endif
Jon Griffiths7a6bad82001-01-22 02:13:58 +0000413#define HELPMSGSTRING WINELIB_NAME_AW(HELPMSGSTRING)
414
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000415
416#define CD_LBSELNOITEMS -1
417#define CD_LBSELCHANGE 0
418#define CD_LBSELSUB 1
419#define CD_LBSELADD 2
420
Paul Quinn1beaae51998-12-15 15:38:36 +0000421#define CDN_FIRST (0U-601U)
422#define CDN_LAST (0U-699U)
423
424#define CDN_INITDONE (CDN_FIRST - 0x0000)
425#define CDN_SELCHANGE (CDN_FIRST - 0x0001)
426#define CDN_FOLDERCHANGE (CDN_FIRST - 0x0002)
427#define CDN_SHAREVIOLATION (CDN_FIRST - 0x0003)
428#define CDN_HELP (CDN_FIRST - 0x0004)
429#define CDN_FILEOK (CDN_FIRST - 0x0005)
430#define CDN_TYPECHANGE (CDN_FIRST - 0x0006)
431
432#define CDM_FIRST (WM_USER + 100)
433#define CDM_LAST (WM_USER + 200)
434
435#define CDM_GETSPEC (CDM_FIRST + 0x0000)
436#define CDM_GETFILEPATH (CDM_FIRST + 0x0001)
437#define CDM_GETFOLDERPATH (CDM_FIRST + 0x0002)
438#define CDM_GETFOLDERLIST (CDM_FIRST + 0x0003)
439#define CDM_SETCONTROLTEXT (CDM_FIRST + 0x0004)
440#define CDM_HIDECONTROL (CDM_FIRST + 0x0005)
441#define CDM_SETDEFEXT (CDM_FIRST + 0x0006)
442
Michael Cardenas6a52a502000-02-07 17:22:01 +0000443
444/* Messages to query information from the open or save dialogs */
445
446#define CommDlg_OpenSave_GetSpecA(_hdlg, _psz, _cbmax) \
447 (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
448#define CommDlg_OpenSave_GetSpecW(_hdlg, _psz, _cbmax) \
449 (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
450#define CommDlg_OpenSave_GetSpec WINELIB_NAME_AW(CommDlg_OpenSave_GetSpec)
451
452#define CommDlg_OpenSave_GetFilePathA(_hdlg, _psz, _cbmax) \
453 (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
454#define CommDlg_OpenSave_GetFilePathW(_hdlg, _psz, _cbmax) \
455 (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
456#define CommDlg_OpenSave_GetFilePath WINELIB_NAME_AW(CommDlg_OpenSave_GetFilePath)
457
458#define CommDlg_OpenSave_GetFolderPathA(_hdlg, _psz, _cbmax) \
459 (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
460#define CommDlg_OpenSave_GetFolderPathW(_hdlg, _psz, _cbmax) \
461 (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
462#define CommDlg_OpenSave_GetFolderPath WINELIB_NAME_AW(CommDlg_OpenSave_GetFolderPath)
463
464#define CommDlg_OpenSave_GetFolderIDList(_hdlg, _pidl, _cbmax) \
465 (int)SNDMSG(_hdlg, CDM_GETFOLDERIDLIST, (WPARAM)_cbmax, (LPARAM)(LPVOID)_pidl)
466
467#define CommDlg_OpenSave_SetControlText(_hdlg, _id, _text) \
468 (void)SNDMSG(_hdlg, CDM_SETCONTROLTEXT, (WPARAM)_id, (LPARAM)(LPSTR)_text)
469
470#define CommDlg_OpenSave_HideControl(_hdlg, _id) \
471 (void)SNDMSG(_hdlg, CDM_HIDECONTROL, (WPARAM)_id, 0)
472
473#define CommDlg_OpenSave_SetDefExt(_hdlg, _pszext) \
474 (void)SNDMSG(_hdlg, CDM_SETDEFEXT, 0, (LPARAM)(LPSTR)_pszext)
475
Michael Cardenase5e2fc92000-06-02 20:25:56 +0000476#define CommDlg_OpenSave_GetSpecA(_hdlg, _psz, _cbmax) \
477 (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
478#define CommDlg_OpenSave_GetSpecW(_hdlg, _psz, _cbmax) \
479 (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
480#define CommDlg_OpenSave_GetSpec WINELIB_NAME_AW(CommDlg_OpenSave_GetSpec)
481
482#define CommDlg_OpenSave_GetFilePathA(_hdlg, _psz, _cbmax) \
483 (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
484#define CommDlg_OpenSave_GetFilePathW(_hdlg, _psz, _cbmax) \
485 (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
486#define CommDlg_OpenSave_GetFilePath WINELIB_NAME_AW(CommDlg_OpenSave_GetFilePath)
487
488#define CommDlg_OpenSave_GetFolderPathA(_hdlg, _psz, _cbmax) \
489 (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
490#define CommDlg_OpenSave_GetFolderPathW(_hdlg, _psz, _cbmax) \
491 (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
492#define CommDlg_OpenSave_GetFolderPath WINELIB_NAME_AW(CommDlg_OpenSave_GetFolderPath)
493
494#define CommDlg_OpenSave_GetFolderIDList(_hdlg, _pidl, _cbmax) \
495 (int)SNDMSG(_hdlg, CDM_GETFOLDERIDLIST, (WPARAM)_cbmax, (LPARAM)(LPVOID)_pidl)
496
497#define CommDlg_OpenSave_SetControlText(_hdlg, _id, _text) \
498 (void)SNDMSG(_hdlg, CDM_SETCONTROLTEXT, (WPARAM)_id, (LPARAM)(LPSTR)_text)
499
500#define CommDlg_OpenSave_HideControl(_hdlg, _id) \
501 (void)SNDMSG(_hdlg, CDM_HIDECONTROL, (WPARAM)_id, 0)
502
503#define CommDlg_OpenSave_SetDefExt(_hdlg, _pszext) \
504 (void)SNDMSG(_hdlg, CDM_SETDEFEXT, 0, (LPARAM)(LPSTR)_pszext)
505
Michael Cardenas6a52a502000-02-07 17:22:01 +0000506
Patrik Stridvallf94462f2002-01-31 23:22:07 +0000507typedef UINT (CALLBACK *LPPRINTHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
508typedef UINT (CALLBACK *LPSETUPHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
Paul Quinnaaa83061999-06-05 15:23:20 +0000509
Paul Quinn1beaae51998-12-15 15:38:36 +0000510typedef struct tagPDA
Alexandre Julliard17216f51997-10-12 16:30:17 +0000511{
512 DWORD lStructSize;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000513 HWND hwndOwner;
514 HGLOBAL hDevMode;
515 HGLOBAL hDevNames;
516 HDC hDC;
Alexandre Julliard17216f51997-10-12 16:30:17 +0000517 DWORD Flags;
518 WORD nFromPage;
519 WORD nToPage;
520 WORD nMinPage;
521 WORD nMaxPage;
522 WORD nCopies;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000523 HINSTANCE hInstance;
Alexandre Julliard17216f51997-10-12 16:30:17 +0000524 LPARAM lCustData;
525 LPPRINTHOOKPROC lpfnPrintHook;
526 LPSETUPHOOKPROC lpfnSetupHook;
527 LPCSTR lpPrintTemplateName;
528 LPCSTR lpSetupTemplateName;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000529 HGLOBAL hPrintTemplate;
530 HGLOBAL hSetupTemplate;
531} PRINTDLGA, *LPPRINTDLGA;
Alexandre Julliard17216f51997-10-12 16:30:17 +0000532
Paul Quinn1beaae51998-12-15 15:38:36 +0000533typedef struct tagPDW
Alexandre Julliard17216f51997-10-12 16:30:17 +0000534{
535 DWORD lStructSize;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000536 HWND hwndOwner;
537 HGLOBAL hDevMode;
538 HGLOBAL hDevNames;
539 HDC hDC;
Alexandre Julliard17216f51997-10-12 16:30:17 +0000540 DWORD Flags;
541 WORD nFromPage;
542 WORD nToPage;
543 WORD nMinPage;
544 WORD nMaxPage;
545 WORD nCopies;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000546 HINSTANCE hInstance;
Alexandre Julliard17216f51997-10-12 16:30:17 +0000547 LPARAM lCustData;
548 LPPRINTHOOKPROC lpfnPrintHook;
549 LPSETUPHOOKPROC lpfnSetupHook;
550 LPCWSTR lpPrintTemplateName;
551 LPCWSTR lpSetupTemplateName;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000552 HGLOBAL hPrintTemplate;
553 HGLOBAL hSetupTemplate;
554} PRINTDLGW, *LPPRINTDLGW;
Alexandre Julliard17216f51997-10-12 16:30:17 +0000555
Alexandre Julliarda845b881998-06-01 10:44:35 +0000556DECL_WINELIB_TYPE_AW(PRINTDLG)
557DECL_WINELIB_TYPE_AW(LPPRINTDLG)
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000558
Detlef Riekenberg03f5774d2007-10-24 23:52:01 +0200559#define PD_ALLPAGES 0x00000000
560#define PD_SELECTION 0x00000001
561#define PD_PAGENUMS 0x00000002
562#define PD_NOSELECTION 0x00000004
563#define PD_NOPAGENUMS 0x00000008
564#define PD_COLLATE 0x00000010
565#define PD_PRINTTOFILE 0x00000020
566#define PD_PRINTSETUP 0x00000040
567#define PD_NOWARNING 0x00000080
568#define PD_RETURNDC 0x00000100
569#define PD_RETURNIC 0x00000200
570#define PD_RETURNDEFAULT 0x00000400
571#define PD_SHOWHELP 0x00000800
572#define PD_ENABLEPRINTHOOK 0x00001000
573#define PD_ENABLESETUPHOOK 0x00002000
574#define PD_ENABLEPRINTTEMPLATE 0x00004000
575#define PD_ENABLESETUPTEMPLATE 0x00008000
576#define PD_ENABLEPRINTTEMPLATEHANDLE 0x00010000
577#define PD_ENABLESETUPTEMPLATEHANDLE 0x00020000
578#define PD_USEDEVMODECOPIES 0x00040000
Klaas van Gend3d5f2a81999-08-07 12:34:54 +0000579#define PD_USEDEVMODECOPIESANDCOLLATE 0x00040000
Detlef Riekenberg03f5774d2007-10-24 23:52:01 +0200580#define PD_DISABLEPRINTTOFILE 0x00080000
581#define PD_HIDEPRINTTOFILE 0x00100000
582#define PD_NONETWORKBUTTON 0x00200000
583#define PD_CURRENTPAGE 0x00400000
584#define PD_NOCURRENTPAGE 0x00800000
585#define PD_EXCLUSIONFLAGS 0x01000000
586#define PD_USELARGETEMPLATE 0x10000000
587
588
589#define PD_EXCL_COPIESANDCOLLATE (DM_COPIES | DM_COLLATE)
590
591#define START_PAGE_GENERAL 0xffffffff
592
593#define PD_RESULT_CANCEL 0
594#define PD_RESULT_PRINT 1
595#define PD_RESULT_APPLY 2
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000596
Alexandre Julliard83f52d12000-09-26 22:20:14 +0000597typedef struct
598{
599 WORD wDriverOffset;
600 WORD wDeviceOffset;
601 WORD wOutputOffset;
602 WORD wDefault;
603} DEVNAMES;
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000604typedef DEVNAMES * LPDEVNAMES;
605
606#define DN_DEFAULTPRN 0x0001
607
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000608/* PageSetupDlg stuff ... */
609#define WM_PSD_PAGESETUPDLG (WM_USER )
610#define WM_PSD_FULLPAGERECT (WM_USER+1)
611#define WM_PSD_MINMARGINRECT (WM_USER+2)
612#define WM_PSD_MARGINRECT (WM_USER+3)
613#define WM_PSD_GREEKTEXTRECT (WM_USER+4)
614#define WM_PSD_ENVSTAMPRECT (WM_USER+5)
615#define WM_PSD_YAFULLPAGERECT (WM_USER+6)
616
Patrik Stridvallf94462f2002-01-31 23:22:07 +0000617typedef UINT (CALLBACK *LPPAGEPAINTHOOK)( HWND, UINT, WPARAM, LPARAM );
618typedef UINT (CALLBACK *LPPAGESETUPHOOK)( HWND, UINT, WPARAM, LPARAM );
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000619
Alexandre Julliarda3960291999-02-26 11:11:13 +0000620typedef struct tagPSDA
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000621{
622 DWORD lStructSize;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000623 HWND hwndOwner;
624 HGLOBAL hDevMode;
625 HGLOBAL hDevNames;
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000626 DWORD Flags;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000627 POINT ptPaperSize;
628 RECT rtMinMargin;
629 RECT rtMargin;
630 HINSTANCE hInstance;
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000631 LPARAM lCustData;
632 LPPAGESETUPHOOK lpfnPageSetupHook;
633 LPPAGEPAINTHOOK lpfnPagePaintHook;
634 LPCSTR lpPageSetupTemplateName;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000635 HGLOBAL hPageSetupTemplate;
636} PAGESETUPDLGA,*LPPAGESETUPDLGA;
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000637
Alexandre Julliarda3960291999-02-26 11:11:13 +0000638typedef struct tagPSDW
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000639{
640 DWORD lStructSize;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000641 HWND hwndOwner;
642 HGLOBAL hDevMode;
643 HGLOBAL hDevNames;
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000644 DWORD Flags;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000645 POINT ptPaperSize;
646 RECT rtMinMargin;
647 RECT rtMargin;
648 HINSTANCE hInstance;
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000649 LPARAM lCustData;
650 LPPAGESETUPHOOK lpfnPageSetupHook;
651 LPPAGEPAINTHOOK lpfnPagePaintHook;
652 LPCWSTR lpPageSetupTemplateName;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000653 HGLOBAL hPageSetupTemplate;
654} PAGESETUPDLGW,*LPPAGESETUPDLGW;
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000655DECL_WINELIB_TYPE_AW(PAGESETUPDLG)
656DECL_WINELIB_TYPE_AW(LPPAGESETUPDLG)
657
658#define PSD_DEFAULTMINMARGINS 0x00000000
659#define PSD_INWININIINTLMEASURE 0x00000000
660
661#define PSD_MINMARGINS 0x00000001
662#define PSD_MARGINS 0x00000002
663#define PSD_INTHOUSANDTHSOFINCHES 0x00000004
664#define PSD_INHUNDREDTHSOFMILLIMETERS 0x00000008
665#define PSD_DISABLEMARGINS 0x00000010
666#define PSD_DISABLEPRINTER 0x00000020
667#define PSD_NOWARNING 0x00000080
668#define PSD_DISABLEORIENTATION 0x00000100
669#define PSD_RETURNDEFAULT 0x00000400
670#define PSD_DISABLEPAPER 0x00000200
671#define PSD_SHOWHELP 0x00000800
672#define PSD_ENABLEPAGESETUPHOOK 0x00002000
673#define PSD_ENABLEPAGESETUPTEMPLATE 0x00008000
674#define PSD_ENABLEPAGESETUPTEMPLATEHANDLE 0x00020000
675#define PSD_ENABLEPAGEPAINTHOOK 0x00040000
676#define PSD_DISABLEPAGEPAINTING 0x00080000
Detlef Riekenberg03f5774d2007-10-24 23:52:01 +0200677#define PSD_NONETWORKBUTTON 0x00200000
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000678
Eric Pouecha8d8b522005-04-18 10:01:07 +0000679typedef struct tagPRINTPAGERANGE
680{
681 DWORD nFromPage;
682 DWORD nToPage;
683} PRINTPAGERANGE, *LPPRINTPAGERANGE;
684
685typedef struct tagPDEXA
686{
687 DWORD lStructSize;
688 HWND hwndOwner;
689 HGLOBAL hDevMode;
690 HGLOBAL hDevNames;
691 HDC hDC;
692 DWORD Flags;
693 DWORD Flags2;
694 DWORD ExclusionFlags;
695 DWORD nPageRanges;
696 DWORD nMaxPageRanges;
697 LPPRINTPAGERANGE lpPageRanges;
698 DWORD nMinPage;
699 DWORD nMaxPage;
700 DWORD nCopies;
701 HINSTANCE hInstance;
702 LPCSTR lpPrintTemplateName;
703 void* /*LPUNKNOWN*/ lpCallback;
704 DWORD nPropertyPages;
705 HPROPSHEETPAGE* lphPropertyPages;
706 DWORD nStartPage;
707 DWORD dwResultAction;
708} PRINTDLGEXA, *LPPRINTDLGEXA;
709
710typedef struct tagPDEXW
711{
712 DWORD lStructSize;
713 HWND hwndOwner;
714 HGLOBAL hDevMode;
715 HGLOBAL hDevNames;
716 HDC hDC;
717 DWORD Flags;
718 DWORD Flags2;
719 DWORD ExclusionFlags;
720 DWORD nPageRanges;
721 DWORD nMaxPageRanges;
722 LPPRINTPAGERANGE lpPageRanges;
723 DWORD nMinPage;
724 DWORD nMaxPage;
725 DWORD nCopies;
726 HINSTANCE hInstance;
727 LPCWSTR lpPrintTemplateName;
728 void* /*LPUNKNOWN*/ lpCallback;
729 DWORD nPropertyPages;
730 HPROPSHEETPAGE* lphPropertyPages;
731 DWORD nStartPage;
732 DWORD dwResultAction;
733} PRINTDLGEXW, *LPPRINTDLGEXW;
734
735DECL_WINELIB_TYPE_AW(PRINTDLGEX)
736DECL_WINELIB_TYPE_AW(LPPRINTDLGEX)
Huw D M Daviesb40a9b72000-05-26 22:26:06 +0000737
Alexandre Julliarda3960291999-02-26 11:11:13 +0000738BOOL WINAPI ChooseColorA(LPCHOOSECOLORA lpChCol);
739BOOL WINAPI ChooseColorW(LPCHOOSECOLORW lpChCol);
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000740#define ChooseColor WINELIB_NAME_AW(ChooseColor)
Alexandre Julliard670cdc41997-08-24 16:00:30 +0000741DWORD WINAPI CommDlgExtendedError(void);
Alexandre Julliarda3960291999-02-26 11:11:13 +0000742HWND WINAPI FindTextA(LPFINDREPLACEA lpFind);
743HWND WINAPI FindTextW(LPFINDREPLACEW lpFind);
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000744#define FindText WINELIB_NAME_AW(FindText)
Ge van Geldorp5bec0d72004-03-12 01:52:11 +0000745short WINAPI GetFileTitleA(LPCSTR lpFile, LPSTR lpTitle, WORD cbBuf);
746short WINAPI GetFileTitleW(LPCWSTR lpFile, LPWSTR lpTitle, WORD cbBuf);
Alexandre Julliard33072e11997-06-29 18:08:02 +0000747#define GetFileTitle WINELIB_NAME_AW(GetFileTitle)
Alexandre Julliarda3960291999-02-26 11:11:13 +0000748BOOL WINAPI GetOpenFileNameA(LPOPENFILENAMEA ofn);
749BOOL WINAPI GetOpenFileNameW(LPOPENFILENAMEW ofn);
Alexandre Julliard33072e11997-06-29 18:08:02 +0000750#define GetOpenFileName WINELIB_NAME_AW(GetOpenFileName)
Alexandre Julliarda3960291999-02-26 11:11:13 +0000751BOOL WINAPI GetSaveFileNameA(LPOPENFILENAMEA ofn);
752BOOL WINAPI GetSaveFileNameW(LPOPENFILENAMEW ofn);
Alexandre Julliard33072e11997-06-29 18:08:02 +0000753#define GetSaveFileName WINELIB_NAME_AW(GetSaveFileName)
Alexandre Julliarda3960291999-02-26 11:11:13 +0000754BOOL WINAPI PageSetupDlgA( LPPAGESETUPDLGA );
755BOOL WINAPI PageSetupDlgW( LPPAGESETUPDLGW );
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000756#define PageSetupDlg WINELIB_NAME_AW(PageSetupDlg)
Alexandre Julliarda3960291999-02-26 11:11:13 +0000757BOOL WINAPI PrintDlgA( LPPRINTDLGA printdlg);
758BOOL WINAPI PrintDlgW( LPPRINTDLGW printdlg);
Uwe Bonnes9fdceb81998-11-08 13:12:49 +0000759#define PrintDlg WINELIB_NAME_AW(PrintDlg)
Eric Pouecha8d8b522005-04-18 10:01:07 +0000760HRESULT WINAPI PrintDlgExA(LPPRINTDLGEXA);
761HRESULT WINAPI PrintDlgExW(LPPRINTDLGEXW);
762#define PrintDlgEx WINELIB_NAME_AW(PrintDlgEx)
Alexandre Julliarda3960291999-02-26 11:11:13 +0000763HWND WINAPI ReplaceTextA( LPFINDREPLACEA lpFind);
764HWND WINAPI ReplaceTextW( LPFINDREPLACEW lpFind);
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000765#define ReplaceText WINELIB_NAME_AW(ReplaceText)
Alexandre Julliarda3960291999-02-26 11:11:13 +0000766BOOL WINAPI ChooseFontA(LPCHOOSEFONTA);
767BOOL WINAPI ChooseFontW(LPCHOOSEFONTW);
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000768#define ChooseFont WINELIB_NAME_AW(ChooseFont)
Klaas van Gend3c6253b1999-03-15 15:16:54 +0000769
Vincent Béron9a624912002-05-31 23:06:46 +0000770void COMDLG32_SetCommDlgExtendedError(DWORD err);
Francois Boisvert87b81de1999-07-27 16:20:36 +0000771
Klaas van Gend3c6253b1999-03-15 15:16:54 +0000772
Dimitrie O. Paun53f9c212003-08-28 21:43:34 +0000773#include <poppack.h>
Klaas van Gendb24a67f1999-05-02 11:22:50 +0000774
Alexandre Julliard1e9ac791996-06-06 18:38:27 +0000775#ifdef __cplusplus
776}
777#endif
Alexandre Julliard3a405ba1994-10-30 16:25:19 +0000778
Alexandre Julliard1e9ac791996-06-06 18:38:27 +0000779#endif /* __WINE_COMMDLG_H */