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
31 #define OFN_READONLY 0x00000001
32 #define OFN_OVERWRITEPROMPT 0x00000002
33 #define OFN_HIDEREADONLY 0x00000004
34 #define OFN_NOCHANGEDIR 0x00000008
35 #define OFN_SHOWHELP 0x00000010
36 #define OFN_ENABLEHOOK 0x00000020
37 #define OFN_ENABLETEMPLATE 0x00000040
38 #define OFN_ENABLETEMPLATEHANDLE 0x00000080
39 #define OFN_NOVALIDATE 0x00000100
40 #define OFN_ALLOWMULTISELECT 0x00000200
41 #define OFN_EXTENSIONDIFFERENT 0x00000400
42 #define OFN_PATHMUSTEXIST 0x00000800
43 #define OFN_FILEMUSTEXIST 0x00001000
44 #define OFN_CREATEPROMPT 0x00002000
45 #define OFN_SHAREAWARE 0x00004000
46 #define OFN_NOREADONLYRETURN 0x00008000
47 #define OFN_NOTESTFILECREATE 0x00010000
48 #define OFN_NONETWORKBUTTON 0x00020000
49 #define OFN_NOLONGNAMES 0x00040000
50 #define OFN_EXPLORER 0x00080000
51 #define OFN_NODEREFERENCELINKS 0x00100000
52 #define OFN_LONGNAMES 0x00200000
53 #define OFN_ENABLEINCLUDENOTIFY 0x00400000
54 #define OFN_ENABLESIZING 0x00800000
55 #define OFN_DONTADDTORECENT 0x02000000
56 #define OFN_FORCESHOWHIDDEN 0x10000000
58 #define OFN_SHAREFALLTHROUGH 2
59 #define OFN_SHARENOWARN 1
60 #define OFN_SHAREWARN 0
65 typedef UINT (CALLBACK
*LPOFNHOOKPROC
)(HWND
,UINT
,WPARAM
,LPARAM
);
72 LPSTR lpstrCustomFilter
;
79 LPCSTR lpstrInitialDir
;
86 LPOFNHOOKPROC lpfnHook
;
87 LPCSTR lpTemplateName
;
88 } OPENFILENAMEA
,*LPOPENFILENAMEA
;
95 LPWSTR lpstrCustomFilter
;
100 LPWSTR lpstrFileTitle
;
102 LPCWSTR lpstrInitialDir
;
109 LPOFNHOOKPROC lpfnHook
;
110 LPCWSTR lpTemplateName
;
111 } OPENFILENAMEW
,*LPOPENFILENAMEW
;
113 DECL_WINELIB_TYPE_AW(OPENFILENAME
)
114 DECL_WINELIB_TYPE_AW(LPOPENFILENAME
)
119 LPOPENFILENAMEA lpOFN
;
121 } OFNOTIFYA
, *LPOFNOTIFYA
;
126 LPOPENFILENAMEW lpOFN
;
128 } OFNOTIFYW
, *LPOFNOTIFYW
;
130 DECL_WINELIB_TYPE_AW(OFNOTIFY
)
131 DECL_WINELIB_TYPE_AW(LPOFNOTIFY
)
133 typedef UINT (CALLBACK
*LPCCHOOKPROC
) (HWND
, UINT
, WPARAM
, LPARAM
);
138 HWND hInstance
; /* Should be an HINSTANCE but MS made a typo */
140 LPDWORD lpCustColors
;
143 LPCCHOOKPROC lpfnHook
;
144 LPCSTR lpTemplateName
;
146 typedef CHOOSECOLORA
*LPCHOOSECOLORA
;
151 HWND hInstance
; /* Should be an HINSTANCE but MS made a typo */
153 LPDWORD lpCustColors
;
156 LPCCHOOKPROC lpfnHook
;
157 LPCWSTR lpTemplateName
;
159 typedef CHOOSECOLORW
*LPCHOOSECOLORW
;
161 DECL_WINELIB_TYPE_AW(CHOOSECOLOR
)
162 DECL_WINELIB_TYPE_AW(LPCHOOSECOLOR
)
165 #define CC_RGBINIT 0x00000001
166 #define CC_FULLOPEN 0x00000002
167 #define CC_PREVENTFULLOPEN 0x00000004
168 #define CC_SHOWHELP 0x00000008
169 #define CC_ENABLEHOOK 0x00000010
170 #define CC_ENABLETEMPLATE 0x00000020
171 #define CC_ENABLETEMPLATEHANDLE 0x00000040
172 #define CC_SOLIDCOLOR 0x00000080
173 #define CC_ANYCOLOR 0x00000100
175 typedef UINT (CALLBACK
*LPFRHOOKPROC
)(HWND
,UINT
,WPARAM
,LPARAM
);
183 LPSTR lpstrReplaceWith
;
185 WORD wReplaceWithLen
;
187 LPFRHOOKPROC lpfnHook
;
188 LPCSTR lpTemplateName
;
189 } FINDREPLACEA
, *LPFINDREPLACEA
;
196 LPWSTR lpstrFindWhat
;
197 LPWSTR lpstrReplaceWith
;
199 WORD wReplaceWithLen
;
201 LPFRHOOKPROC lpfnHook
;
202 LPCWSTR lpTemplateName
;
203 } FINDREPLACEW
, *LPFINDREPLACEW
;
205 DECL_WINELIB_TYPE_AW(FINDREPLACE
)
206 DECL_WINELIB_TYPE_AW(LPFINDREPLACE
)
208 #define FR_DOWN 0x00000001
209 #define FR_WHOLEWORD 0x00000002
210 #define FR_MATCHCASE 0x00000004
211 #define FR_FINDNEXT 0x00000008
212 #define FR_REPLACE 0x00000010
213 #define FR_REPLACEALL 0x00000020
214 #define FR_DIALOGTERM 0x00000040
215 #define FR_SHOWHELP 0x00000080
216 #define FR_ENABLEHOOK 0x00000100
217 #define FR_ENABLETEMPLATE 0x00000200
218 #define FR_NOUPDOWN 0x00000400
219 #define FR_NOMATCHCASE 0x00000800
220 #define FR_NOWHOLEWORD 0x00001000
221 #define FR_ENABLETEMPLATEHANDLE 0x00002000
222 #define FR_HIDEUPDOWN 0x00004000
223 #define FR_HIDEMATCHCASE 0x00008000
224 #define FR_HIDEWHOLEWORD 0x00010000
226 typedef UINT (CALLBACK
*LPCFHOOKPROC
)(HWND
,UINT
,WPARAM
,LPARAM
);
233 LPLOGFONTA lpLogFont
;
238 LPCFHOOKPROC lpfnHook
;
239 LPCSTR lpTemplateName
;
243 WORD ___MISSING_ALIGNMENT__
;
246 } CHOOSEFONTA
, *LPCHOOSEFONTA
;
253 LPLOGFONTW lpLogFont
;
258 LPCFHOOKPROC lpfnHook
;
259 LPCWSTR lpTemplateName
;
263 WORD ___MISSING_ALIGNMENT__
;
266 } CHOOSEFONTW
, *LPCHOOSEFONTW
;
268 DECL_WINELIB_TYPE_AW(CHOOSEFONT
)
269 DECL_WINELIB_TYPE_AW(LPCHOOSEFONT
)
271 #define CF_SCREENFONTS 0x00000001
272 #define CF_PRINTERFONTS 0x00000002
273 #define CF_BOTH (CF_SCREENFONTS | CF_PRINTERFONTS)
274 #define CF_SHOWHELP 0x00000004L
275 #define CF_ENABLEHOOK 0x00000008L
276 #define CF_ENABLETEMPLATE 0x00000010L
277 #define CF_ENABLETEMPLATEHANDLE 0x00000020L
278 #define CF_INITTOLOGFONTSTRUCT 0x00000040L
279 #define CF_USESTYLE 0x00000080L
280 #define CF_EFFECTS 0x00000100L
281 #define CF_APPLY 0x00000200L
282 #define CF_ANSIONLY 0x00000400L
283 #define CF_SCRIPTSONLY CF_ANSIONLY
284 #define CF_NOVECTORFONTS 0x00000800L
285 #define CF_NOOEMFONTS CF_NOVECTORFONTS
286 #define CF_NOSIMULATIONS 0x00001000L
287 #define CF_LIMITSIZE 0x00002000L
288 #define CF_FIXEDPITCHONLY 0x00004000L
289 #define CF_WYSIWYG 0x00008000L /* use with CF_SCREENFONTS & CF_PRINTERFONTS */
290 #define CF_FORCEFONTEXIST 0x00010000L
291 #define CF_SCALABLEONLY 0x00020000L
292 #define CF_TTONLY 0x00040000L
293 #define CF_NOFACESEL 0x00080000L
294 #define CF_NOSTYLESEL 0x00100000L
295 #define CF_NOSIZESEL 0x00200000L
296 #define CF_SELECTSCRIPT 0x00400000L
297 #define CF_NOSCRIPTSEL 0x00800000L
298 #define CF_NOVERTFONTS 0x01000000L
300 #define SIMULATED_FONTTYPE 0x8000
301 #define PRINTER_FONTTYPE 0x4000
302 #define SCREEN_FONTTYPE 0x2000
303 #define BOLD_FONTTYPE 0x0100
304 #define ITALIC_FONTTYPE 0x0200
305 #define REGULAR_FONTTYPE 0x0400
307 #define WM_CHOOSEFONT_GETLOGFONT (WM_USER + 1)
308 #define WM_CHOOSEFONT_SETLOGFONT (WM_USER + 101)
309 #define WM_CHOOSEFONT_SETFLAGS (WM_USER + 102)
311 #define LBSELCHSTRINGA "commdlg_LBSelChangedNotify"
312 static const WCHAR LBSELCHSTRINGW
[] = { 'c','o','m','m','d','l','g','_',
313 'L','B','S','e','l','C','h','a','n','g','e','d','N','o','t','i','f','y',0 };
314 #define LBSELCHSTRING WINELIB_NAME_AW(LBSELCHSTRING)
316 #define SHAREVISTRINGA "commdlg_ShareViolation"
317 static const WCHAR SHAREVISTRINGW
[] = { 'c','o','m','m','d','l','g','_',
318 'S','h','a','r','e','V','i','o','l','a','t','i','o','n',0 };
319 #define SHAREVISTRING WINELIB_NAME_AW(SHAREVISTRING)
321 #define FILEOKSTRINGA "commdlg_FileNameOK"
322 static const WCHAR FILEOKSTRINGW
[] = { 'c','o','m','m','d','l','g','_',
323 'F','i','l','e','N','a','m','e','O','K',0 };
324 #define FILEOKSTRING WINELIB_NAME_AW(FILEOKSTRING)
326 #define COLOROKSTRINGA "commdlg_ColorOK"
327 static const WCHAR COLOROKSTRINGW
[] = { 'c','o','m','m','d','l','g','_',
328 'C','o','l','o','r','O','K',0 };
329 #define COLOROKSTRING WINELIB_NAME_AW(COLOROKSTRING)
331 #define SETRGBSTRINGA "commdlg_SetRGBColor"
332 static const WCHAR SETRGBSTRINGW
[] = { 'c','o','m','m','d','l','g','_',
333 'S','e','t','R','G','B','C','o','l','o','r',0 };
334 #define SETRGBSTRING WINELIB_NAME_AW(SETRGBSTRING)
336 #define FINDMSGSTRINGA "commdlg_FindReplace"
337 static const WCHAR FINDMSGSTRINGW
[] = { 'c','o','m','m','d','l','g','_',
338 'F','i','n','d','R','e','p','l','a','c','e',0 };
339 #define FINDMSGSTRING WINELIB_NAME_AW(FINDMSGSTRING)
341 #define HELPMSGSTRINGA "commdlg_help"
342 static const WCHAR HELPMSGSTRINGW
[] = { 'c','o','m','m','d','l','g','_',
344 #define HELPMSGSTRING WINELIB_NAME_AW(HELPMSGSTRING)
347 #define CD_LBSELNOITEMS -1
348 #define CD_LBSELCHANGE 0
349 #define CD_LBSELSUB 1
350 #define CD_LBSELADD 2
352 #define CDN_FIRST (0U-601U)
353 #define CDN_LAST (0U-699U)
355 #define CDN_INITDONE (CDN_FIRST - 0x0000)
356 #define CDN_SELCHANGE (CDN_FIRST - 0x0001)
357 #define CDN_FOLDERCHANGE (CDN_FIRST - 0x0002)
358 #define CDN_SHAREVIOLATION (CDN_FIRST - 0x0003)
359 #define CDN_HELP (CDN_FIRST - 0x0004)
360 #define CDN_FILEOK (CDN_FIRST - 0x0005)
361 #define CDN_TYPECHANGE (CDN_FIRST - 0x0006)
363 #define CDM_FIRST (WM_USER + 100)
364 #define CDM_LAST (WM_USER + 200)
366 #define CDM_GETSPEC (CDM_FIRST + 0x0000)
367 #define CDM_GETFILEPATH (CDM_FIRST + 0x0001)
368 #define CDM_GETFOLDERPATH (CDM_FIRST + 0x0002)
369 #define CDM_GETFOLDERLIST (CDM_FIRST + 0x0003)
370 #define CDM_SETCONTROLTEXT (CDM_FIRST + 0x0004)
371 #define CDM_HIDECONTROL (CDM_FIRST + 0x0005)
372 #define CDM_SETDEFEXT (CDM_FIRST + 0x0006)
375 /* Messages to query information from the open or save dialogs */
377 #define CommDlg_OpenSave_GetSpecA(_hdlg, _psz, _cbmax) \
378 (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
379 #define CommDlg_OpenSave_GetSpecW(_hdlg, _psz, _cbmax) \
380 (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
381 #define CommDlg_OpenSave_GetSpec WINELIB_NAME_AW(CommDlg_OpenSave_GetSpec)
383 #define CommDlg_OpenSave_GetFilePathA(_hdlg, _psz, _cbmax) \
384 (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
385 #define CommDlg_OpenSave_GetFilePathW(_hdlg, _psz, _cbmax) \
386 (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
387 #define CommDlg_OpenSave_GetFilePath WINELIB_NAME_AW(CommDlg_OpenSave_GetFilePath)
389 #define CommDlg_OpenSave_GetFolderPathA(_hdlg, _psz, _cbmax) \
390 (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
391 #define CommDlg_OpenSave_GetFolderPathW(_hdlg, _psz, _cbmax) \
392 (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
393 #define CommDlg_OpenSave_GetFolderPath WINELIB_NAME_AW(CommDlg_OpenSave_GetFolderPath)
395 #define CommDlg_OpenSave_GetFolderIDList(_hdlg, _pidl, _cbmax) \
396 (int)SNDMSG(_hdlg, CDM_GETFOLDERIDLIST, (WPARAM)_cbmax, (LPARAM)(LPVOID)_pidl)
398 #define CommDlg_OpenSave_SetControlText(_hdlg, _id, _text) \
399 (void)SNDMSG(_hdlg, CDM_SETCONTROLTEXT, (WPARAM)_id, (LPARAM)(LPSTR)_text)
401 #define CommDlg_OpenSave_HideControl(_hdlg, _id) \
402 (void)SNDMSG(_hdlg, CDM_HIDECONTROL, (WPARAM)_id, 0)
404 #define CommDlg_OpenSave_SetDefExt(_hdlg, _pszext) \
405 (void)SNDMSG(_hdlg, CDM_SETDEFEXT, 0, (LPARAM)(LPSTR)_pszext)
407 #define CommDlg_OpenSave_GetSpecA(_hdlg, _psz, _cbmax) \
408 (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
409 #define CommDlg_OpenSave_GetSpecW(_hdlg, _psz, _cbmax) \
410 (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
411 #define CommDlg_OpenSave_GetSpec WINELIB_NAME_AW(CommDlg_OpenSave_GetSpec)
413 #define CommDlg_OpenSave_GetFilePathA(_hdlg, _psz, _cbmax) \
414 (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
415 #define CommDlg_OpenSave_GetFilePathW(_hdlg, _psz, _cbmax) \
416 (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
417 #define CommDlg_OpenSave_GetFilePath WINELIB_NAME_AW(CommDlg_OpenSave_GetFilePath)
419 #define CommDlg_OpenSave_GetFolderPathA(_hdlg, _psz, _cbmax) \
420 (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
421 #define CommDlg_OpenSave_GetFolderPathW(_hdlg, _psz, _cbmax) \
422 (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
423 #define CommDlg_OpenSave_GetFolderPath WINELIB_NAME_AW(CommDlg_OpenSave_GetFolderPath)
425 #define CommDlg_OpenSave_GetFolderIDList(_hdlg, _pidl, _cbmax) \
426 (int)SNDMSG(_hdlg, CDM_GETFOLDERIDLIST, (WPARAM)_cbmax, (LPARAM)(LPVOID)_pidl)
428 #define CommDlg_OpenSave_SetControlText(_hdlg, _id, _text) \
429 (void)SNDMSG(_hdlg, CDM_SETCONTROLTEXT, (WPARAM)_id, (LPARAM)(LPSTR)_text)
431 #define CommDlg_OpenSave_HideControl(_hdlg, _id) \
432 (void)SNDMSG(_hdlg, CDM_HIDECONTROL, (WPARAM)_id, 0)
434 #define CommDlg_OpenSave_SetDefExt(_hdlg, _pszext) \
435 (void)SNDMSG(_hdlg, CDM_SETDEFEXT, 0, (LPARAM)(LPSTR)_pszext)
438 typedef UINT (CALLBACK
*LPPRINTHOOKPROC
) (HWND
, UINT
, WPARAM
, LPARAM
);
439 typedef UINT (CALLBACK
*LPSETUPHOOKPROC
) (HWND
, UINT
, WPARAM
, LPARAM
);
441 typedef struct tagPDA
456 LPPRINTHOOKPROC lpfnPrintHook
;
457 LPSETUPHOOKPROC lpfnSetupHook
;
458 LPCSTR lpPrintTemplateName
;
459 LPCSTR lpSetupTemplateName
;
460 HGLOBAL hPrintTemplate
;
461 HGLOBAL hSetupTemplate
;
462 } PRINTDLGA
, *LPPRINTDLGA
;
464 typedef struct tagPDW
479 LPPRINTHOOKPROC lpfnPrintHook
;
480 LPSETUPHOOKPROC lpfnSetupHook
;
481 LPCWSTR lpPrintTemplateName
;
482 LPCWSTR lpSetupTemplateName
;
483 HGLOBAL hPrintTemplate
;
484 HGLOBAL hSetupTemplate
;
485 } PRINTDLGW
, *LPPRINTDLGW
;
487 DECL_WINELIB_TYPE_AW(PRINTDLG
)
488 DECL_WINELIB_TYPE_AW(LPPRINTDLG
)
490 #define PD_ALLPAGES 0x00000000
491 #define PD_SELECTION 0x00000001
492 #define PD_PAGENUMS 0x00000002
493 #define PD_NOSELECTION 0x00000004
494 #define PD_NOPAGENUMS 0x00000008
495 #define PD_COLLATE 0x00000010
496 #define PD_PRINTTOFILE 0x00000020
497 #define PD_PRINTSETUP 0x00000040
498 #define PD_NOWARNING 0x00000080
499 #define PD_RETURNDC 0x00000100
500 #define PD_RETURNIC 0x00000200
501 #define PD_RETURNDEFAULT 0x00000400
502 #define PD_SHOWHELP 0x00000800
503 #define PD_ENABLEPRINTHOOK 0x00001000
504 #define PD_ENABLESETUPHOOK 0x00002000
505 #define PD_ENABLEPRINTTEMPLATE 0x00004000
506 #define PD_ENABLESETUPTEMPLATE 0x00008000
507 #define PD_ENABLEPRINTTEMPLATEHANDLE 0x00010000
508 #define PD_ENABLESETUPTEMPLATEHANDLE 0x00020000
509 #define PD_USEDEVMODECOPIES 0x00040000
510 #define PD_USEDEVMODECOPIESANDCOLLATE 0x00040000
511 #define PD_DISABLEPRINTTOFILE 0x00080000
512 #define PD_HIDEPRINTTOFILE 0x00100000
513 #define PD_NONETWORKBUTTON 0x00200000
522 typedef DEVNAMES
* LPDEVNAMES
;
524 #define DN_DEFAULTPRN 0x0001
526 /* PageSetupDlg stuff ... */
527 #define WM_PSD_PAGESETUPDLG (WM_USER )
528 #define WM_PSD_FULLPAGERECT (WM_USER+1)
529 #define WM_PSD_MINMARGINRECT (WM_USER+2)
530 #define WM_PSD_MARGINRECT (WM_USER+3)
531 #define WM_PSD_GREEKTEXTRECT (WM_USER+4)
532 #define WM_PSD_ENVSTAMPRECT (WM_USER+5)
533 #define WM_PSD_YAFULLPAGERECT (WM_USER+6)
535 typedef UINT (CALLBACK
*LPPAGEPAINTHOOK
)( HWND
, UINT
, WPARAM
, LPARAM
);
536 typedef UINT (CALLBACK
*LPPAGESETUPHOOK
)( HWND
, UINT
, WPARAM
, LPARAM
);
538 typedef struct tagPSDA
550 LPPAGESETUPHOOK lpfnPageSetupHook
;
551 LPPAGEPAINTHOOK lpfnPagePaintHook
;
552 LPCSTR lpPageSetupTemplateName
;
553 HGLOBAL hPageSetupTemplate
;
554 } PAGESETUPDLGA
,*LPPAGESETUPDLGA
;
556 typedef struct tagPSDW
568 LPPAGESETUPHOOK lpfnPageSetupHook
;
569 LPPAGEPAINTHOOK lpfnPagePaintHook
;
570 LPCWSTR lpPageSetupTemplateName
;
571 HGLOBAL hPageSetupTemplate
;
572 } PAGESETUPDLGW
,*LPPAGESETUPDLGW
;
573 DECL_WINELIB_TYPE_AW(PAGESETUPDLG
)
574 DECL_WINELIB_TYPE_AW(LPPAGESETUPDLG
)
576 #define PSD_DEFAULTMINMARGINS 0x00000000
577 #define PSD_INWININIINTLMEASURE 0x00000000
579 #define PSD_MINMARGINS 0x00000001
580 #define PSD_MARGINS 0x00000002
581 #define PSD_INTHOUSANDTHSOFINCHES 0x00000004
582 #define PSD_INHUNDREDTHSOFMILLIMETERS 0x00000008
583 #define PSD_DISABLEMARGINS 0x00000010
584 #define PSD_DISABLEPRINTER 0x00000020
585 #define PSD_NOWARNING 0x00000080
586 #define PSD_DISABLEORIENTATION 0x00000100
587 #define PSD_RETURNDEFAULT 0x00000400
588 #define PSD_DISABLEPAPER 0x00000200
589 #define PSD_SHOWHELP 0x00000800
590 #define PSD_ENABLEPAGESETUPHOOK 0x00002000
591 #define PSD_ENABLEPAGESETUPTEMPLATE 0x00008000
592 #define PSD_ENABLEPAGESETUPTEMPLATEHANDLE 0x00020000
593 #define PSD_ENABLEPAGEPAINTHOOK 0x00040000
594 #define PSD_DISABLEPAGEPAINTING 0x00080000
597 BOOL WINAPI
ChooseColorA(LPCHOOSECOLORA lpChCol
);
598 BOOL WINAPI
ChooseColorW(LPCHOOSECOLORW lpChCol
);
599 #define ChooseColor WINELIB_NAME_AW(ChooseColor)
600 DWORD WINAPI
CommDlgExtendedError(void);
601 HWND WINAPI
FindTextA(LPFINDREPLACEA lpFind
);
602 HWND WINAPI
FindTextW(LPFINDREPLACEW lpFind
);
603 #define FindText WINELIB_NAME_AW(FindText)
604 short WINAPI
GetFileTitleA(LPCSTR lpFile
, LPSTR lpTitle
, UINT cbBuf
);
605 short WINAPI
GetFileTitleW(LPCWSTR lpFile
, LPWSTR lpTitle
, UINT cbBuf
);
606 #define GetFileTitle WINELIB_NAME_AW(GetFileTitle)
607 BOOL WINAPI
GetOpenFileNameA(LPOPENFILENAMEA ofn
);
608 BOOL WINAPI
GetOpenFileNameW(LPOPENFILENAMEW ofn
);
609 #define GetOpenFileName WINELIB_NAME_AW(GetOpenFileName)
610 BOOL WINAPI
GetSaveFileNameA(LPOPENFILENAMEA ofn
);
611 BOOL WINAPI
GetSaveFileNameW(LPOPENFILENAMEW ofn
);
612 #define GetSaveFileName WINELIB_NAME_AW(GetSaveFileName)
613 BOOL WINAPI
PageSetupDlgA( LPPAGESETUPDLGA
);
614 BOOL WINAPI
PageSetupDlgW( LPPAGESETUPDLGW
);
615 #define PageSetupDlg WINELIB_NAME_AW(PageSetupDlg)
616 BOOL WINAPI
PrintDlgA( LPPRINTDLGA printdlg
);
617 BOOL WINAPI
PrintDlgW( LPPRINTDLGW printdlg
);
618 #define PrintDlg WINELIB_NAME_AW(PrintDlg)
619 HWND WINAPI
ReplaceTextA( LPFINDREPLACEA lpFind
);
620 HWND WINAPI
ReplaceTextW( LPFINDREPLACEW lpFind
);
621 #define ReplaceText WINELIB_NAME_AW(ReplaceText)
622 BOOL WINAPI
ChooseFontA(LPCHOOSEFONTA
);
623 BOOL WINAPI
ChooseFontW(LPCHOOSEFONTW
);
624 #define ChooseFont WINELIB_NAME_AW(ChooseFont)
626 void COMDLG32_SetCommDlgExtendedError(DWORD err
);
635 #endif /* __WINE_COMMDLG_H */