source: branches/swt/include/win/commdlg.h@ 22118

Last change on this file since 22118 was 22081, checked in by rousseau, 11 years ago

Modified or replaced some structures

structures:
o DEVMODEA
o DEVMODEW
o NMLVCUSTOMDRAW
o NOTIFYICONDATAA
o NOTIFYICONDATAW
o OPENFILENAME
o OSVERSIONINFOA
o OSVERSIONINFOW
o OSVERSIONINFOEXA
o OSVERSIONINFOEXW
o SCROLLBARINFO
o SHELLEXECUTEINFOA
o SHELLEXECUTEINFOW
o TTTOOLINFOA
o TTTOOLINFOW

All sources for swt.dll now compile.

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