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

Last change on this file since 5200 was 4926, checked in by sandervl, 25 years ago

update

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