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

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

header updates

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