HTTP_DealWithProxy: Only add http:// to proxy string when needed.
[wine/multimedia.git] / include / commdlg.h
blob045a55c7784aa9b303ef7657f2065b1445191851
1 /*
2 * COMMDLG - Common Wine Dialog ... :-)
4 * Copyright (C) the Wine project
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.
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.
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
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WINE_COMMDLG_H
22 #define __WINE_COMMDLG_H
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
28 #include <prsht.h>
29 #include <pshpack1.h>
31 #ifndef SNDMSG
32 #ifdef __cplusplus
33 #define SNDMSG ::SendMessage
34 #else /* __cplusplus */
35 #define SNDMSG SendMessage
36 #endif /* __cplusplus */
37 #endif /* SNDMSG */
39 #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
56 #define OFN_NONETWORKBUTTON 0x00020000
57 #define OFN_NOLONGNAMES 0x00040000
58 #define OFN_EXPLORER 0x00080000
59 #define OFN_NODEREFERENCELINKS 0x00100000
60 #define OFN_LONGNAMES 0x00200000
61 #define OFN_ENABLEINCLUDENOTIFY 0x00400000
62 #define OFN_ENABLESIZING 0x00800000
63 #define OFN_DONTADDTORECENT 0x02000000
64 #define OFN_FORCESHOWHIDDEN 0x10000000
66 #define OFN_SHAREFALLTHROUGH 2
67 #define OFN_SHARENOWARN 1
68 #define OFN_SHAREWARN 0
70 #define SAVE_DIALOG 1
71 #define OPEN_DIALOG 2
73 typedef UINT (CALLBACK *LPOFNHOOKPROC)(HWND,UINT,WPARAM,LPARAM);
75 typedef struct {
76 DWORD lStructSize;
77 HWND hwndOwner;
78 HINSTANCE hInstance;
79 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;
94 LPOFNHOOKPROC lpfnHook;
95 LPCSTR lpTemplateName;
96 } OPENFILENAMEA,*LPOPENFILENAMEA;
98 typedef struct {
99 DWORD lStructSize;
100 HWND hwndOwner;
101 HINSTANCE hInstance;
102 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;
117 LPOFNHOOKPROC lpfnHook;
118 LPCWSTR lpTemplateName;
119 } OPENFILENAMEW,*LPOPENFILENAMEW;
121 DECL_WINELIB_TYPE_AW(OPENFILENAME)
122 DECL_WINELIB_TYPE_AW(LPOPENFILENAME)
124 typedef struct
126 NMHDR hdr;
127 LPOPENFILENAMEA lpOFN;
128 LPSTR pszFile;
129 } OFNOTIFYA, *LPOFNOTIFYA;
131 typedef struct
133 NMHDR hdr;
134 LPOPENFILENAMEW lpOFN;
135 LPWSTR pszFile;
136 } OFNOTIFYW, *LPOFNOTIFYW;
138 DECL_WINELIB_TYPE_AW(OFNOTIFY)
139 DECL_WINELIB_TYPE_AW(LPOFNOTIFY)
141 typedef UINT (CALLBACK *LPCCHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
143 typedef struct {
144 DWORD lStructSize;
145 HWND hwndOwner;
146 HWND hInstance; /* Should be an HINSTANCE but MS made a typo */
147 DWORD rgbResult;
148 LPDWORD lpCustColors;
149 DWORD Flags;
150 DWORD lCustData;
151 LPCCHOOKPROC lpfnHook;
152 LPCSTR lpTemplateName;
153 } CHOOSECOLORA;
154 typedef CHOOSECOLORA *LPCHOOSECOLORA;
156 typedef struct {
157 DWORD lStructSize;
158 HWND hwndOwner;
159 HWND hInstance; /* Should be an HINSTANCE but MS made a typo */
160 DWORD rgbResult;
161 LPDWORD lpCustColors;
162 DWORD Flags;
163 DWORD lCustData;
164 LPCCHOOKPROC lpfnHook;
165 LPCWSTR lpTemplateName;
166 } CHOOSECOLORW;
167 typedef CHOOSECOLORW *LPCHOOSECOLORW;
169 DECL_WINELIB_TYPE_AW(CHOOSECOLOR)
170 DECL_WINELIB_TYPE_AW(LPCHOOSECOLOR)
173 #define CC_RGBINIT 0x00000001
174 #define CC_FULLOPEN 0x00000002
175 #define CC_PREVENTFULLOPEN 0x00000004
176 #define CC_SHOWHELP 0x00000008
177 #define CC_ENABLEHOOK 0x00000010
178 #define CC_ENABLETEMPLATE 0x00000020
179 #define CC_ENABLETEMPLATEHANDLE 0x00000040
180 #define CC_SOLIDCOLOR 0x00000080
181 #define CC_ANYCOLOR 0x00000100
183 typedef UINT (CALLBACK *LPFRHOOKPROC)(HWND,UINT,WPARAM,LPARAM);
185 typedef struct {
186 DWORD lStructSize;
187 HWND hwndOwner;
188 HINSTANCE hInstance;
189 DWORD Flags;
190 LPSTR lpstrFindWhat;
191 LPSTR lpstrReplaceWith;
192 WORD wFindWhatLen;
193 WORD wReplaceWithLen;
194 LPARAM lCustData;
195 LPFRHOOKPROC lpfnHook;
196 LPCSTR lpTemplateName;
197 } FINDREPLACEA, *LPFINDREPLACEA;
199 typedef struct {
200 DWORD lStructSize;
201 HWND hwndOwner;
202 HINSTANCE hInstance;
203 DWORD Flags;
204 LPWSTR lpstrFindWhat;
205 LPWSTR lpstrReplaceWith;
206 WORD wFindWhatLen;
207 WORD wReplaceWithLen;
208 LPARAM lCustData;
209 LPFRHOOKPROC lpfnHook;
210 LPCWSTR lpTemplateName;
211 } FINDREPLACEW, *LPFINDREPLACEW;
213 DECL_WINELIB_TYPE_AW(FINDREPLACE)
214 DECL_WINELIB_TYPE_AW(LPFINDREPLACE)
216 #define FR_DOWN 0x00000001
217 #define FR_WHOLEWORD 0x00000002
218 #define FR_MATCHCASE 0x00000004
219 #define FR_FINDNEXT 0x00000008
220 #define FR_REPLACE 0x00000010
221 #define FR_REPLACEALL 0x00000020
222 #define FR_DIALOGTERM 0x00000040
223 #define FR_SHOWHELP 0x00000080
224 #define FR_ENABLEHOOK 0x00000100
225 #define FR_ENABLETEMPLATE 0x00000200
226 #define FR_NOUPDOWN 0x00000400
227 #define FR_NOMATCHCASE 0x00000800
228 #define FR_NOWHOLEWORD 0x00001000
229 #define FR_ENABLETEMPLATEHANDLE 0x00002000
230 #define FR_HIDEUPDOWN 0x00004000
231 #define FR_HIDEMATCHCASE 0x00008000
232 #define FR_HIDEWHOLEWORD 0x00010000
233 #define FR_MATCHDIAC 0x20000000
234 #define FR_MATCHKASHIDA 0x40000000
235 #define FR_MATCHALEFHAMZA 0x80000000
237 typedef UINT (CALLBACK *LPCFHOOKPROC)(HWND,UINT,WPARAM,LPARAM);
239 typedef struct
241 UINT lStructSize;
242 HWND hwndOwner;
243 HDC hDC;
244 LPLOGFONTA lpLogFont;
245 INT iPointSize;
246 DWORD Flags;
247 COLORREF rgbColors;
248 LPARAM lCustData;
249 LPCFHOOKPROC lpfnHook;
250 LPCSTR lpTemplateName;
251 HINSTANCE hInstance;
252 LPSTR lpszStyle;
253 WORD nFontType;
254 WORD ___MISSING_ALIGNMENT__;
255 INT nSizeMin;
256 INT nSizeMax;
257 } CHOOSEFONTA, *LPCHOOSEFONTA;
259 typedef struct
261 UINT lStructSize;
262 HWND hwndOwner;
263 HDC hDC;
264 LPLOGFONTW lpLogFont;
265 INT iPointSize;
266 DWORD Flags;
267 COLORREF rgbColors;
268 LPARAM lCustData;
269 LPCFHOOKPROC lpfnHook;
270 LPCWSTR lpTemplateName;
271 HINSTANCE hInstance;
272 LPWSTR lpszStyle;
273 WORD nFontType;
274 WORD ___MISSING_ALIGNMENT__;
275 INT nSizeMin;
276 INT nSizeMax;
277 } CHOOSEFONTW, *LPCHOOSEFONTW;
279 DECL_WINELIB_TYPE_AW(CHOOSEFONT)
280 DECL_WINELIB_TYPE_AW(LPCHOOSEFONT)
282 #define CF_SCREENFONTS 0x00000001
283 #define CF_PRINTERFONTS 0x00000002
284 #define CF_BOTH (CF_SCREENFONTS | CF_PRINTERFONTS)
285 #define CF_SHOWHELP 0x00000004L
286 #define CF_ENABLEHOOK 0x00000008L
287 #define CF_ENABLETEMPLATE 0x00000010L
288 #define CF_ENABLETEMPLATEHANDLE 0x00000020L
289 #define CF_INITTOLOGFONTSTRUCT 0x00000040L
290 #define CF_USESTYLE 0x00000080L
291 #define CF_EFFECTS 0x00000100L
292 #define CF_APPLY 0x00000200L
293 #define CF_ANSIONLY 0x00000400L
294 #define CF_SCRIPTSONLY CF_ANSIONLY
295 #define CF_NOVECTORFONTS 0x00000800L
296 #define CF_NOOEMFONTS CF_NOVECTORFONTS
297 #define CF_NOSIMULATIONS 0x00001000L
298 #define CF_LIMITSIZE 0x00002000L
299 #define CF_FIXEDPITCHONLY 0x00004000L
300 #define CF_WYSIWYG 0x00008000L /* use with CF_SCREENFONTS & CF_PRINTERFONTS */
301 #define CF_FORCEFONTEXIST 0x00010000L
302 #define CF_SCALABLEONLY 0x00020000L
303 #define CF_TTONLY 0x00040000L
304 #define CF_NOFACESEL 0x00080000L
305 #define CF_NOSTYLESEL 0x00100000L
306 #define CF_NOSIZESEL 0x00200000L
307 #define CF_SELECTSCRIPT 0x00400000L
308 #define CF_NOSCRIPTSEL 0x00800000L
309 #define CF_NOVERTFONTS 0x01000000L
311 #define SIMULATED_FONTTYPE 0x8000
312 #define PRINTER_FONTTYPE 0x4000
313 #define SCREEN_FONTTYPE 0x2000
314 #define BOLD_FONTTYPE 0x0100
315 #define ITALIC_FONTTYPE 0x0200
316 #define REGULAR_FONTTYPE 0x0400
318 #define WM_CHOOSEFONT_GETLOGFONT (WM_USER + 1)
319 #define WM_CHOOSEFONT_SETLOGFONT (WM_USER + 101)
320 #define WM_CHOOSEFONT_SETFLAGS (WM_USER + 102)
322 #define LBSELCHSTRINGA "commdlg_LBSelChangedNotify"
323 #if defined(__GNUC__)
324 # define LBSELCHSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \
325 'L','B','S','e','l','C','h','a','n','g','e','d','N','o','t','i','f','y',0 }
326 #elif defined(_MSC_VER)
327 # define LBSELCHSTRINGW L"commdlg_LBSelChangedNotify"
328 #else
329 static const WCHAR LBSELCHSTRINGW[] = { 'c','o','m','m','d','l','g','_',
330 'L','B','S','e','l','C','h','a','n','g','e','d','N','o','t','i','f','y',0 };
331 #endif
332 #define LBSELCHSTRING WINELIB_NAME_AW(LBSELCHSTRING)
334 #define SHAREVISTRINGA "commdlg_ShareViolation"
335 #if defined(__GNUC__)
336 # define SHAREVISTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \
337 'S','h','a','r','e','V','i','o','l','a','t','i','o','n',0 }
338 #elif defined(_MSC_VER)
339 # define SHAREVISTRINGW L"commdlg_ShareViolation"
340 #else
341 static const WCHAR SHAREVISTRINGW[] = { 'c','o','m','m','d','l','g','_',
342 'S','h','a','r','e','V','i','o','l','a','t','i','o','n',0 };
343 #endif
344 #define SHAREVISTRING WINELIB_NAME_AW(SHAREVISTRING)
346 #define FILEOKSTRINGA "commdlg_FileNameOK"
347 #if defined(__GNUC__)
348 # define FILEOKSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \
349 'F','i','l','e','N','a','m','e','O','K',0 }
350 #elif defined(_MSC_VER)
351 # define FILEOKSTRINGW L"commdlg_FileNameOK"
352 #else
353 static const WCHAR FILEOKSTRINGW[] = { 'c','o','m','m','d','l','g','_',
354 'F','i','l','e','N','a','m','e','O','K',0 };
355 #endif
356 #define FILEOKSTRING WINELIB_NAME_AW(FILEOKSTRING)
358 #define COLOROKSTRINGA "commdlg_ColorOK"
359 #if defined(__GNUC__)
360 # define COLOROKSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \
361 'C','o','l','o','r','O','K',0 }
362 #elif defined(_MSC_VER)
363 # define COLOROKSTRINGW L"commdlg_ColorOK"
364 #else
365 static const WCHAR COLOROKSTRINGW[] = { 'c','o','m','m','d','l','g','_',
366 'C','o','l','o','r','O','K',0 };
367 #endif
368 #define COLOROKSTRING WINELIB_NAME_AW(COLOROKSTRING)
370 #define SETRGBSTRINGA "commdlg_SetRGBColor"
371 #if defined(__GNUC__)
372 # define SETRGBSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \
373 'S','e','t','R','G','B','C','o','l','o','r',0 }
374 #elif defined(_MSC_VER)
375 # define SETRGBSTRINGW L"commdlg_SetRGBColor"
376 #else
377 static const WCHAR SETRGBSTRINGW[] = { 'c','o','m','m','d','l','g','_',
378 'S','e','t','R','G','B','C','o','l','o','r',0 };
379 #endif
380 #define SETRGBSTRING WINELIB_NAME_AW(SETRGBSTRING)
382 #define FINDMSGSTRINGA "commdlg_FindReplace"
383 #if defined(__GNUC__)
384 # define FINDMSGSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \
385 'F','i','n','d','R','e','p','l','a','c','e',0 }
386 #elif defined(_MSC_VER)
387 # define FINDMSGSTRINGW L"commdlg_FindReplace"
388 #else
389 static const WCHAR FINDMSGSTRINGW[] = { 'c','o','m','m','d','l','g','_',
390 'F','i','n','d','R','e','p','l','a','c','e',0 };
391 #endif
392 #define FINDMSGSTRING WINELIB_NAME_AW(FINDMSGSTRING)
394 #define HELPMSGSTRINGA "commdlg_help"
395 #if defined(__GNUC__)
396 # define HELPMSGSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \
397 'H','e','l','p',0 }
398 #elif defined(_MSC_VER)
399 # define HELPMSGSTRINGW L"commdlg_help"
400 #else
401 static const WCHAR HELPMSGSTRINGW[] = { 'c','o','m','m','d','l','g','_',
402 'H','e','l','p',0 };
403 #endif
404 #define HELPMSGSTRING WINELIB_NAME_AW(HELPMSGSTRING)
407 #define CD_LBSELNOITEMS -1
408 #define CD_LBSELCHANGE 0
409 #define CD_LBSELSUB 1
410 #define CD_LBSELADD 2
412 #define CDN_FIRST (0U-601U)
413 #define CDN_LAST (0U-699U)
415 #define CDN_INITDONE (CDN_FIRST - 0x0000)
416 #define CDN_SELCHANGE (CDN_FIRST - 0x0001)
417 #define CDN_FOLDERCHANGE (CDN_FIRST - 0x0002)
418 #define CDN_SHAREVIOLATION (CDN_FIRST - 0x0003)
419 #define CDN_HELP (CDN_FIRST - 0x0004)
420 #define CDN_FILEOK (CDN_FIRST - 0x0005)
421 #define CDN_TYPECHANGE (CDN_FIRST - 0x0006)
423 #define CDM_FIRST (WM_USER + 100)
424 #define CDM_LAST (WM_USER + 200)
426 #define CDM_GETSPEC (CDM_FIRST + 0x0000)
427 #define CDM_GETFILEPATH (CDM_FIRST + 0x0001)
428 #define CDM_GETFOLDERPATH (CDM_FIRST + 0x0002)
429 #define CDM_GETFOLDERLIST (CDM_FIRST + 0x0003)
430 #define CDM_SETCONTROLTEXT (CDM_FIRST + 0x0004)
431 #define CDM_HIDECONTROL (CDM_FIRST + 0x0005)
432 #define CDM_SETDEFEXT (CDM_FIRST + 0x0006)
435 /* Messages to query information from the open or save dialogs */
437 #define CommDlg_OpenSave_GetSpecA(_hdlg, _psz, _cbmax) \
438 (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
439 #define CommDlg_OpenSave_GetSpecW(_hdlg, _psz, _cbmax) \
440 (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
441 #define CommDlg_OpenSave_GetSpec WINELIB_NAME_AW(CommDlg_OpenSave_GetSpec)
443 #define CommDlg_OpenSave_GetFilePathA(_hdlg, _psz, _cbmax) \
444 (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
445 #define CommDlg_OpenSave_GetFilePathW(_hdlg, _psz, _cbmax) \
446 (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
447 #define CommDlg_OpenSave_GetFilePath WINELIB_NAME_AW(CommDlg_OpenSave_GetFilePath)
449 #define CommDlg_OpenSave_GetFolderPathA(_hdlg, _psz, _cbmax) \
450 (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
451 #define CommDlg_OpenSave_GetFolderPathW(_hdlg, _psz, _cbmax) \
452 (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
453 #define CommDlg_OpenSave_GetFolderPath WINELIB_NAME_AW(CommDlg_OpenSave_GetFolderPath)
455 #define CommDlg_OpenSave_GetFolderIDList(_hdlg, _pidl, _cbmax) \
456 (int)SNDMSG(_hdlg, CDM_GETFOLDERIDLIST, (WPARAM)_cbmax, (LPARAM)(LPVOID)_pidl)
458 #define CommDlg_OpenSave_SetControlText(_hdlg, _id, _text) \
459 (void)SNDMSG(_hdlg, CDM_SETCONTROLTEXT, (WPARAM)_id, (LPARAM)(LPSTR)_text)
461 #define CommDlg_OpenSave_HideControl(_hdlg, _id) \
462 (void)SNDMSG(_hdlg, CDM_HIDECONTROL, (WPARAM)_id, 0)
464 #define CommDlg_OpenSave_SetDefExt(_hdlg, _pszext) \
465 (void)SNDMSG(_hdlg, CDM_SETDEFEXT, 0, (LPARAM)(LPSTR)_pszext)
467 #define CommDlg_OpenSave_GetSpecA(_hdlg, _psz, _cbmax) \
468 (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
469 #define CommDlg_OpenSave_GetSpecW(_hdlg, _psz, _cbmax) \
470 (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
471 #define CommDlg_OpenSave_GetSpec WINELIB_NAME_AW(CommDlg_OpenSave_GetSpec)
473 #define CommDlg_OpenSave_GetFilePathA(_hdlg, _psz, _cbmax) \
474 (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
475 #define CommDlg_OpenSave_GetFilePathW(_hdlg, _psz, _cbmax) \
476 (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
477 #define CommDlg_OpenSave_GetFilePath WINELIB_NAME_AW(CommDlg_OpenSave_GetFilePath)
479 #define CommDlg_OpenSave_GetFolderPathA(_hdlg, _psz, _cbmax) \
480 (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
481 #define CommDlg_OpenSave_GetFolderPathW(_hdlg, _psz, _cbmax) \
482 (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
483 #define CommDlg_OpenSave_GetFolderPath WINELIB_NAME_AW(CommDlg_OpenSave_GetFolderPath)
485 #define CommDlg_OpenSave_GetFolderIDList(_hdlg, _pidl, _cbmax) \
486 (int)SNDMSG(_hdlg, CDM_GETFOLDERIDLIST, (WPARAM)_cbmax, (LPARAM)(LPVOID)_pidl)
488 #define CommDlg_OpenSave_SetControlText(_hdlg, _id, _text) \
489 (void)SNDMSG(_hdlg, CDM_SETCONTROLTEXT, (WPARAM)_id, (LPARAM)(LPSTR)_text)
491 #define CommDlg_OpenSave_HideControl(_hdlg, _id) \
492 (void)SNDMSG(_hdlg, CDM_HIDECONTROL, (WPARAM)_id, 0)
494 #define CommDlg_OpenSave_SetDefExt(_hdlg, _pszext) \
495 (void)SNDMSG(_hdlg, CDM_SETDEFEXT, 0, (LPARAM)(LPSTR)_pszext)
498 typedef UINT (CALLBACK *LPPRINTHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
499 typedef UINT (CALLBACK *LPSETUPHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
501 typedef struct tagPDA
503 DWORD lStructSize;
504 HWND hwndOwner;
505 HGLOBAL hDevMode;
506 HGLOBAL hDevNames;
507 HDC hDC;
508 DWORD Flags;
509 WORD nFromPage;
510 WORD nToPage;
511 WORD nMinPage;
512 WORD nMaxPage;
513 WORD nCopies;
514 HINSTANCE hInstance;
515 LPARAM lCustData;
516 LPPRINTHOOKPROC lpfnPrintHook;
517 LPSETUPHOOKPROC lpfnSetupHook;
518 LPCSTR lpPrintTemplateName;
519 LPCSTR lpSetupTemplateName;
520 HGLOBAL hPrintTemplate;
521 HGLOBAL hSetupTemplate;
522 } PRINTDLGA, *LPPRINTDLGA;
524 typedef struct tagPDW
526 DWORD lStructSize;
527 HWND hwndOwner;
528 HGLOBAL hDevMode;
529 HGLOBAL hDevNames;
530 HDC hDC;
531 DWORD Flags;
532 WORD nFromPage;
533 WORD nToPage;
534 WORD nMinPage;
535 WORD nMaxPage;
536 WORD nCopies;
537 HINSTANCE hInstance;
538 LPARAM lCustData;
539 LPPRINTHOOKPROC lpfnPrintHook;
540 LPSETUPHOOKPROC lpfnSetupHook;
541 LPCWSTR lpPrintTemplateName;
542 LPCWSTR lpSetupTemplateName;
543 HGLOBAL hPrintTemplate;
544 HGLOBAL hSetupTemplate;
545 } PRINTDLGW, *LPPRINTDLGW;
547 DECL_WINELIB_TYPE_AW(PRINTDLG)
548 DECL_WINELIB_TYPE_AW(LPPRINTDLG)
550 #define PD_ALLPAGES 0x00000000
551 #define PD_SELECTION 0x00000001
552 #define PD_PAGENUMS 0x00000002
553 #define PD_NOSELECTION 0x00000004
554 #define PD_NOPAGENUMS 0x00000008
555 #define PD_COLLATE 0x00000010
556 #define PD_PRINTTOFILE 0x00000020
557 #define PD_PRINTSETUP 0x00000040
558 #define PD_NOWARNING 0x00000080
559 #define PD_RETURNDC 0x00000100
560 #define PD_RETURNIC 0x00000200
561 #define PD_RETURNDEFAULT 0x00000400
562 #define PD_SHOWHELP 0x00000800
563 #define PD_ENABLEPRINTHOOK 0x00001000
564 #define PD_ENABLESETUPHOOK 0x00002000
565 #define PD_ENABLEPRINTTEMPLATE 0x00004000
566 #define PD_ENABLESETUPTEMPLATE 0x00008000
567 #define PD_ENABLEPRINTTEMPLATEHANDLE 0x00010000
568 #define PD_ENABLESETUPTEMPLATEHANDLE 0x00020000
569 #define PD_USEDEVMODECOPIES 0x00040000
570 #define PD_USEDEVMODECOPIESANDCOLLATE 0x00040000
571 #define PD_DISABLEPRINTTOFILE 0x00080000
572 #define PD_HIDEPRINTTOFILE 0x00100000
573 #define PD_NONETWORKBUTTON 0x00200000
575 typedef struct
577 WORD wDriverOffset;
578 WORD wDeviceOffset;
579 WORD wOutputOffset;
580 WORD wDefault;
581 } DEVNAMES;
582 typedef DEVNAMES * LPDEVNAMES;
584 #define DN_DEFAULTPRN 0x0001
586 /* PageSetupDlg stuff ... */
587 #define WM_PSD_PAGESETUPDLG (WM_USER )
588 #define WM_PSD_FULLPAGERECT (WM_USER+1)
589 #define WM_PSD_MINMARGINRECT (WM_USER+2)
590 #define WM_PSD_MARGINRECT (WM_USER+3)
591 #define WM_PSD_GREEKTEXTRECT (WM_USER+4)
592 #define WM_PSD_ENVSTAMPRECT (WM_USER+5)
593 #define WM_PSD_YAFULLPAGERECT (WM_USER+6)
595 typedef UINT (CALLBACK *LPPAGEPAINTHOOK)( HWND, UINT, WPARAM, LPARAM );
596 typedef UINT (CALLBACK *LPPAGESETUPHOOK)( HWND, UINT, WPARAM, LPARAM );
598 typedef struct tagPSDA
600 DWORD lStructSize;
601 HWND hwndOwner;
602 HGLOBAL hDevMode;
603 HGLOBAL hDevNames;
604 DWORD Flags;
605 POINT ptPaperSize;
606 RECT rtMinMargin;
607 RECT rtMargin;
608 HINSTANCE hInstance;
609 LPARAM lCustData;
610 LPPAGESETUPHOOK lpfnPageSetupHook;
611 LPPAGEPAINTHOOK lpfnPagePaintHook;
612 LPCSTR lpPageSetupTemplateName;
613 HGLOBAL hPageSetupTemplate;
614 } PAGESETUPDLGA,*LPPAGESETUPDLGA;
616 typedef struct tagPSDW
618 DWORD lStructSize;
619 HWND hwndOwner;
620 HGLOBAL hDevMode;
621 HGLOBAL hDevNames;
622 DWORD Flags;
623 POINT ptPaperSize;
624 RECT rtMinMargin;
625 RECT rtMargin;
626 HINSTANCE hInstance;
627 LPARAM lCustData;
628 LPPAGESETUPHOOK lpfnPageSetupHook;
629 LPPAGEPAINTHOOK lpfnPagePaintHook;
630 LPCWSTR lpPageSetupTemplateName;
631 HGLOBAL hPageSetupTemplate;
632 } PAGESETUPDLGW,*LPPAGESETUPDLGW;
633 DECL_WINELIB_TYPE_AW(PAGESETUPDLG)
634 DECL_WINELIB_TYPE_AW(LPPAGESETUPDLG)
636 #define PSD_DEFAULTMINMARGINS 0x00000000
637 #define PSD_INWININIINTLMEASURE 0x00000000
639 #define PSD_MINMARGINS 0x00000001
640 #define PSD_MARGINS 0x00000002
641 #define PSD_INTHOUSANDTHSOFINCHES 0x00000004
642 #define PSD_INHUNDREDTHSOFMILLIMETERS 0x00000008
643 #define PSD_DISABLEMARGINS 0x00000010
644 #define PSD_DISABLEPRINTER 0x00000020
645 #define PSD_NOWARNING 0x00000080
646 #define PSD_DISABLEORIENTATION 0x00000100
647 #define PSD_RETURNDEFAULT 0x00000400
648 #define PSD_DISABLEPAPER 0x00000200
649 #define PSD_SHOWHELP 0x00000800
650 #define PSD_ENABLEPAGESETUPHOOK 0x00002000
651 #define PSD_ENABLEPAGESETUPTEMPLATE 0x00008000
652 #define PSD_ENABLEPAGESETUPTEMPLATEHANDLE 0x00020000
653 #define PSD_ENABLEPAGEPAINTHOOK 0x00040000
654 #define PSD_DISABLEPAGEPAINTING 0x00080000
657 BOOL WINAPI ChooseColorA(LPCHOOSECOLORA lpChCol);
658 BOOL WINAPI ChooseColorW(LPCHOOSECOLORW lpChCol);
659 #define ChooseColor WINELIB_NAME_AW(ChooseColor)
660 DWORD WINAPI CommDlgExtendedError(void);
661 HWND WINAPI FindTextA(LPFINDREPLACEA lpFind);
662 HWND WINAPI FindTextW(LPFINDREPLACEW lpFind);
663 #define FindText WINELIB_NAME_AW(FindText)
664 short WINAPI GetFileTitleA(LPCSTR lpFile, LPSTR lpTitle, UINT cbBuf);
665 short WINAPI GetFileTitleW(LPCWSTR lpFile, LPWSTR lpTitle, UINT cbBuf);
666 #define GetFileTitle WINELIB_NAME_AW(GetFileTitle)
667 BOOL WINAPI GetOpenFileNameA(LPOPENFILENAMEA ofn);
668 BOOL WINAPI GetOpenFileNameW(LPOPENFILENAMEW ofn);
669 #define GetOpenFileName WINELIB_NAME_AW(GetOpenFileName)
670 BOOL WINAPI GetSaveFileNameA(LPOPENFILENAMEA ofn);
671 BOOL WINAPI GetSaveFileNameW(LPOPENFILENAMEW ofn);
672 #define GetSaveFileName WINELIB_NAME_AW(GetSaveFileName)
673 BOOL WINAPI PageSetupDlgA( LPPAGESETUPDLGA );
674 BOOL WINAPI PageSetupDlgW( LPPAGESETUPDLGW );
675 #define PageSetupDlg WINELIB_NAME_AW(PageSetupDlg)
676 BOOL WINAPI PrintDlgA( LPPRINTDLGA printdlg);
677 BOOL WINAPI PrintDlgW( LPPRINTDLGW printdlg);
678 #define PrintDlg WINELIB_NAME_AW(PrintDlg)
679 HWND WINAPI ReplaceTextA( LPFINDREPLACEA lpFind);
680 HWND WINAPI ReplaceTextW( LPFINDREPLACEW lpFind);
681 #define ReplaceText WINELIB_NAME_AW(ReplaceText)
682 BOOL WINAPI ChooseFontA(LPCHOOSEFONTA);
683 BOOL WINAPI ChooseFontW(LPCHOOSEFONTW);
684 #define ChooseFont WINELIB_NAME_AW(ChooseFont)
686 void COMDLG32_SetCommDlgExtendedError(DWORD err);
689 #include <poppack.h>
691 #ifdef __cplusplus
693 #endif
695 #endif /* __WINE_COMMDLG_H */