source: trunk/include/win/commdlg.h@ 10367

Last change on this file since 10367 was 9361, checked in by sandervl, 23 years ago

header updates

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