1 | /*
|
---|
2 | * COMMDLG - Common Wine Dialog ... :-)
|
---|
3 | *
|
---|
4 | * Copyright (C) the Wine project
|
---|
5 | *
|
---|
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.
|
---|
10 | *
|
---|
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.
|
---|
15 | *
|
---|
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
19 | */
|
---|
20 |
|
---|
21 | /*
|
---|
22 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
23 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
24 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
25 | * a choice of LGPL license versions is made available with the language indicating
|
---|
26 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
27 | * of the LGPL is applied is otherwise unspecified.
|
---|
28 | */
|
---|
29 |
|
---|
30 | #ifndef __WINE_COMMDLG_H
|
---|
31 | #define __WINE_COMMDLG_H
|
---|
32 |
|
---|
33 | #ifdef __cplusplus
|
---|
34 | extern "C" {
|
---|
35 | #endif
|
---|
36 |
|
---|
37 | #include <prsht.h>
|
---|
38 | #ifndef _WIN64
|
---|
39 | #include <pshpack1.h>
|
---|
40 | #endif
|
---|
41 |
|
---|
42 | #ifndef SNDMSG
|
---|
43 | #ifdef __cplusplus
|
---|
44 | #define SNDMSG ::SendMessage
|
---|
45 | #else /* __cplusplus */
|
---|
46 | #define SNDMSG SendMessage
|
---|
47 | #endif /* __cplusplus */
|
---|
48 | #endif /* SNDMSG */
|
---|
49 |
|
---|
50 | #define OFN_READONLY 0x00000001
|
---|
51 | #define OFN_OVERWRITEPROMPT 0x00000002
|
---|
52 | #define OFN_HIDEREADONLY 0x00000004
|
---|
53 | #define OFN_NOCHANGEDIR 0x00000008
|
---|
54 | #define OFN_SHOWHELP 0x00000010
|
---|
55 | #define OFN_ENABLEHOOK 0x00000020
|
---|
56 | #define OFN_ENABLETEMPLATE 0x00000040
|
---|
57 | #define OFN_ENABLETEMPLATEHANDLE 0x00000080
|
---|
58 | #define OFN_NOVALIDATE 0x00000100
|
---|
59 | #define OFN_ALLOWMULTISELECT 0x00000200
|
---|
60 | #define OFN_EXTENSIONDIFFERENT 0x00000400
|
---|
61 | #define OFN_PATHMUSTEXIST 0x00000800
|
---|
62 | #define OFN_FILEMUSTEXIST 0x00001000
|
---|
63 | #define OFN_CREATEPROMPT 0x00002000
|
---|
64 | #define OFN_SHAREAWARE 0x00004000
|
---|
65 | #define OFN_NOREADONLYRETURN 0x00008000
|
---|
66 | #define OFN_NOTESTFILECREATE 0x00010000
|
---|
67 | #define OFN_NONETWORKBUTTON 0x00020000
|
---|
68 | #define OFN_NOLONGNAMES 0x00040000
|
---|
69 | #define OFN_EXPLORER 0x00080000
|
---|
70 | #define OFN_NODEREFERENCELINKS 0x00100000
|
---|
71 | #define OFN_LONGNAMES 0x00200000
|
---|
72 | #define OFN_ENABLEINCLUDENOTIFY 0x00400000
|
---|
73 | #define OFN_ENABLESIZING 0x00800000
|
---|
74 | #define OFN_DONTADDTORECENT 0x02000000
|
---|
75 | #define OFN_FORCESHOWHIDDEN 0x10000000
|
---|
76 |
|
---|
77 | #define OFN_SHAREFALLTHROUGH 2
|
---|
78 | #define OFN_SHARENOWARN 1
|
---|
79 | #define OFN_SHAREWARN 0
|
---|
80 |
|
---|
81 | #define SAVE_DIALOG 1
|
---|
82 | #define OPEN_DIALOG 2
|
---|
83 |
|
---|
84 | typedef UINT_PTR (CALLBACK *LPOFNHOOKPROC)(HWND,UINT,WPARAM,LPARAM);
|
---|
85 |
|
---|
86 | typedef struct tagOFNA {
|
---|
87 | DWORD lStructSize;
|
---|
88 | HWND hwndOwner;
|
---|
89 | HINSTANCE hInstance;
|
---|
90 | LPCSTR lpstrFilter;
|
---|
91 | LPSTR lpstrCustomFilter;
|
---|
92 | DWORD nMaxCustFilter;
|
---|
93 | DWORD nFilterIndex;
|
---|
94 | LPSTR lpstrFile;
|
---|
95 | DWORD nMaxFile;
|
---|
96 | LPSTR lpstrFileTitle;
|
---|
97 | DWORD nMaxFileTitle;
|
---|
98 | LPCSTR lpstrInitialDir;
|
---|
99 | LPCSTR lpstrTitle;
|
---|
100 | DWORD Flags;
|
---|
101 | WORD nFileOffset;
|
---|
102 | WORD nFileExtension;
|
---|
103 | LPCSTR lpstrDefExt;
|
---|
104 | LPARAM lCustData;
|
---|
105 | LPOFNHOOKPROC lpfnHook;
|
---|
106 | LPCSTR lpTemplateName;
|
---|
107 | } OPENFILENAMEA,*LPOPENFILENAMEA;
|
---|
108 |
|
---|
109 | typedef struct tagOFNW {
|
---|
110 | DWORD lStructSize;
|
---|
111 | HWND hwndOwner;
|
---|
112 | HINSTANCE hInstance;
|
---|
113 | LPCWSTR lpstrFilter;
|
---|
114 | LPWSTR lpstrCustomFilter;
|
---|
115 | DWORD nMaxCustFilter;
|
---|
116 | DWORD nFilterIndex;
|
---|
117 | LPWSTR lpstrFile;
|
---|
118 | DWORD nMaxFile;
|
---|
119 | LPWSTR lpstrFileTitle;
|
---|
120 | DWORD nMaxFileTitle;
|
---|
121 | LPCWSTR lpstrInitialDir;
|
---|
122 | LPCWSTR lpstrTitle;
|
---|
123 | DWORD Flags;
|
---|
124 | WORD nFileOffset;
|
---|
125 | WORD nFileExtension;
|
---|
126 | LPCWSTR lpstrDefExt;
|
---|
127 | LPARAM lCustData;
|
---|
128 | LPOFNHOOKPROC lpfnHook;
|
---|
129 | LPCWSTR lpTemplateName;
|
---|
130 | } OPENFILENAMEW,*LPOPENFILENAMEW;
|
---|
131 |
|
---|
132 | DECL_WINELIB_TYPE_AW(OPENFILENAME)
|
---|
133 | DECL_WINELIB_TYPE_AW(LPOPENFILENAME)
|
---|
134 |
|
---|
135 | #ifndef CDSIZEOF_STRUCT
|
---|
136 | #define CDSIZEOF_STRUCT(type,field) ((int)&(((type *)0)->field) + sizeof(((type*)0)->field))
|
---|
137 | #endif
|
---|
138 |
|
---|
139 | #define OPENFILENAME_SIZE_VERSION_400A CDSIZEOF_STRUCT(OPENFILENAMEA,lpTemplateName)
|
---|
140 | #define OPENFILENAME_SIZE_VERSION_400W CDSIZEOF_STRUCT(OPENFILENAMEW,lpTemplateName)
|
---|
141 | #define OPENFILENAME_SIZE_VERSION_400 WINELIB_NAME_AW(OPENFILENAME_SIZE_VERSION_400)
|
---|
142 |
|
---|
143 |
|
---|
144 | typedef struct
|
---|
145 | {
|
---|
146 | NMHDR hdr;
|
---|
147 | LPOPENFILENAMEA lpOFN;
|
---|
148 | LPSTR pszFile;
|
---|
149 | } OFNOTIFYA, *LPOFNOTIFYA;
|
---|
150 |
|
---|
151 | typedef struct
|
---|
152 | {
|
---|
153 | NMHDR hdr;
|
---|
154 | LPOPENFILENAMEW lpOFN;
|
---|
155 | LPWSTR pszFile;
|
---|
156 | } OFNOTIFYW, *LPOFNOTIFYW;
|
---|
157 |
|
---|
158 | DECL_WINELIB_TYPE_AW(OFNOTIFY)
|
---|
159 | DECL_WINELIB_TYPE_AW(LPOFNOTIFY)
|
---|
160 |
|
---|
161 | typedef struct _OFNOTIFYEXA
|
---|
162 | {
|
---|
163 | NMHDR hdr;
|
---|
164 | LPOPENFILENAMEA lpOFN;
|
---|
165 | LPVOID psf;
|
---|
166 | LPVOID pidl;
|
---|
167 | } OFNOTIFYEXA, *LPOFNOTIFYEXA;
|
---|
168 |
|
---|
169 | typedef struct _OFNOTIFYEXW
|
---|
170 | {
|
---|
171 | NMHDR hdr;
|
---|
172 | LPOPENFILENAMEW lpOFN;
|
---|
173 | LPVOID psf;
|
---|
174 | LPVOID pidl;
|
---|
175 | } OFNOTIFYEXW, *LPOFNOTIFYEXW;
|
---|
176 |
|
---|
177 | DECL_WINELIB_TYPE_AW(OFNOTIFYEX)
|
---|
178 | DECL_WINELIB_TYPE_AW(LPOFNOTIFYEX)
|
---|
179 |
|
---|
180 | typedef UINT_PTR (CALLBACK *LPCCHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
|
---|
181 |
|
---|
182 | typedef struct {
|
---|
183 | DWORD lStructSize;
|
---|
184 | HWND hwndOwner;
|
---|
185 | HWND hInstance; /* Should be an HINSTANCE but MS made a typo */
|
---|
186 | DWORD rgbResult;
|
---|
187 | LPDWORD lpCustColors;
|
---|
188 | DWORD Flags;
|
---|
189 | DWORD lCustData;
|
---|
190 | LPCCHOOKPROC lpfnHook;
|
---|
191 | LPCSTR lpTemplateName;
|
---|
192 | } CHOOSECOLORA;
|
---|
193 | typedef CHOOSECOLORA *LPCHOOSECOLORA;
|
---|
194 |
|
---|
195 | typedef struct {
|
---|
196 | DWORD lStructSize;
|
---|
197 | HWND hwndOwner;
|
---|
198 | HWND hInstance; /* Should be an HINSTANCE but MS made a typo */
|
---|
199 | DWORD rgbResult;
|
---|
200 | LPDWORD lpCustColors;
|
---|
201 | DWORD Flags;
|
---|
202 | DWORD lCustData;
|
---|
203 | LPCCHOOKPROC lpfnHook;
|
---|
204 | LPCWSTR lpTemplateName;
|
---|
205 | } CHOOSECOLORW;
|
---|
206 | typedef CHOOSECOLORW *LPCHOOSECOLORW;
|
---|
207 |
|
---|
208 | DECL_WINELIB_TYPE_AW(CHOOSECOLOR)
|
---|
209 | DECL_WINELIB_TYPE_AW(LPCHOOSECOLOR)
|
---|
210 |
|
---|
211 |
|
---|
212 | #define CC_RGBINIT 0x00000001
|
---|
213 | #define CC_FULLOPEN 0x00000002
|
---|
214 | #define CC_PREVENTFULLOPEN 0x00000004
|
---|
215 | #define CC_SHOWHELP 0x00000008
|
---|
216 | #define CC_ENABLEHOOK 0x00000010
|
---|
217 | #define CC_ENABLETEMPLATE 0x00000020
|
---|
218 | #define CC_ENABLETEMPLATEHANDLE 0x00000040
|
---|
219 | #define CC_SOLIDCOLOR 0x00000080
|
---|
220 | #define CC_ANYCOLOR 0x00000100
|
---|
221 |
|
---|
222 | typedef UINT_PTR (CALLBACK *LPFRHOOKPROC)(HWND,UINT,WPARAM,LPARAM);
|
---|
223 |
|
---|
224 | typedef struct {
|
---|
225 | DWORD lStructSize;
|
---|
226 | HWND hwndOwner;
|
---|
227 | HINSTANCE hInstance;
|
---|
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 |
|
---|
238 | typedef struct {
|
---|
239 | DWORD lStructSize;
|
---|
240 | HWND hwndOwner;
|
---|
241 | HINSTANCE hInstance;
|
---|
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 |
|
---|
252 | DECL_WINELIB_TYPE_AW(FINDREPLACE)
|
---|
253 | DECL_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 | #define FR_MATCHDIAC 0x20000000
|
---|
273 | #define FR_MATCHKASHIDA 0x40000000
|
---|
274 | #define FR_MATCHALEFHAMZA 0x80000000
|
---|
275 |
|
---|
276 | typedef UINT (CALLBACK *LPCFHOOKPROC)(HWND,UINT,WPARAM,LPARAM);
|
---|
277 |
|
---|
278 | typedef struct tagCHOOSEFONTA
|
---|
279 | {
|
---|
280 | UINT lStructSize;
|
---|
281 | HWND hwndOwner;
|
---|
282 | HDC hDC;
|
---|
283 | LPLOGFONTA lpLogFont;
|
---|
284 | INT iPointSize;
|
---|
285 | DWORD Flags;
|
---|
286 | COLORREF rgbColors;
|
---|
287 | LPARAM lCustData;
|
---|
288 | LPCFHOOKPROC lpfnHook;
|
---|
289 | LPCSTR lpTemplateName;
|
---|
290 | HINSTANCE hInstance;
|
---|
291 | LPSTR lpszStyle;
|
---|
292 | WORD nFontType;
|
---|
293 | WORD ___MISSING_ALIGNMENT__;
|
---|
294 | INT nSizeMin;
|
---|
295 | INT nSizeMax;
|
---|
296 | } CHOOSEFONTA, *LPCHOOSEFONTA;
|
---|
297 |
|
---|
298 | typedef struct tagCHOOSEFONTW
|
---|
299 | {
|
---|
300 | UINT lStructSize;
|
---|
301 | HWND hwndOwner;
|
---|
302 | HDC hDC;
|
---|
303 | LPLOGFONTW lpLogFont;
|
---|
304 | INT iPointSize;
|
---|
305 | DWORD Flags;
|
---|
306 | COLORREF rgbColors;
|
---|
307 | LPARAM lCustData;
|
---|
308 | LPCFHOOKPROC lpfnHook;
|
---|
309 | LPCWSTR lpTemplateName;
|
---|
310 | HINSTANCE hInstance;
|
---|
311 | LPWSTR lpszStyle;
|
---|
312 | WORD nFontType;
|
---|
313 | WORD ___MISSING_ALIGNMENT__;
|
---|
314 | INT nSizeMin;
|
---|
315 | INT nSizeMax;
|
---|
316 | } CHOOSEFONTW, *LPCHOOSEFONTW;
|
---|
317 |
|
---|
318 | DECL_WINELIB_TYPE_AW(CHOOSEFONT)
|
---|
319 | DECL_WINELIB_TYPE_AW(LPCHOOSEFONT)
|
---|
320 |
|
---|
321 | #define CF_SCREENFONTS 0x00000001
|
---|
322 | #define CF_PRINTERFONTS 0x00000002
|
---|
323 | #define CF_BOTH (CF_SCREENFONTS | CF_PRINTERFONTS)
|
---|
324 | #define CF_SHOWHELP 0x00000004L
|
---|
325 | #define CF_ENABLEHOOK 0x00000008L
|
---|
326 | #define CF_ENABLETEMPLATE 0x00000010L
|
---|
327 | #define CF_ENABLETEMPLATEHANDLE 0x00000020L
|
---|
328 | #define CF_INITTOLOGFONTSTRUCT 0x00000040L
|
---|
329 | #define CF_USESTYLE 0x00000080L
|
---|
330 | #define CF_EFFECTS 0x00000100L
|
---|
331 | #define CF_APPLY 0x00000200L
|
---|
332 | #define CF_ANSIONLY 0x00000400L
|
---|
333 | #define CF_SCRIPTSONLY CF_ANSIONLY
|
---|
334 | #define CF_NOVECTORFONTS 0x00000800L
|
---|
335 | #define CF_NOOEMFONTS CF_NOVECTORFONTS
|
---|
336 | #define CF_NOSIMULATIONS 0x00001000L
|
---|
337 | #define CF_LIMITSIZE 0x00002000L
|
---|
338 | #define CF_FIXEDPITCHONLY 0x00004000L
|
---|
339 | #define CF_WYSIWYG 0x00008000L /* use with CF_SCREENFONTS & CF_PRINTERFONTS */
|
---|
340 | #define CF_FORCEFONTEXIST 0x00010000L
|
---|
341 | #define CF_SCALABLEONLY 0x00020000L
|
---|
342 | #define CF_TTONLY 0x00040000L
|
---|
343 | #define CF_NOFACESEL 0x00080000L
|
---|
344 | #define CF_NOSTYLESEL 0x00100000L
|
---|
345 | #define CF_NOSIZESEL 0x00200000L
|
---|
346 | #define CF_SELECTSCRIPT 0x00400000L
|
---|
347 | #define CF_NOSCRIPTSEL 0x00800000L
|
---|
348 | #define CF_NOVERTFONTS 0x01000000L
|
---|
349 |
|
---|
350 | #define SIMULATED_FONTTYPE 0x8000
|
---|
351 | #define PRINTER_FONTTYPE 0x4000
|
---|
352 | #define SCREEN_FONTTYPE 0x2000
|
---|
353 | #define BOLD_FONTTYPE 0x0100
|
---|
354 | #define ITALIC_FONTTYPE 0x0200
|
---|
355 | #define REGULAR_FONTTYPE 0x0400
|
---|
356 |
|
---|
357 | #define WM_CHOOSEFONT_GETLOGFONT (WM_USER + 1)
|
---|
358 | #define WM_CHOOSEFONT_SETLOGFONT (WM_USER + 101)
|
---|
359 | #define WM_CHOOSEFONT_SETFLAGS (WM_USER + 102)
|
---|
360 |
|
---|
361 | #define LBSELCHSTRINGA "commdlg_LBSelChangedNotify"
|
---|
362 | #if defined(__GNUC__)
|
---|
363 | # define LBSELCHSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \
|
---|
364 | 'L','B','S','e','l','C','h','a','n','g','e','d','N','o','t','i','f','y',0 }
|
---|
365 | #elif defined(_MSC_VER)
|
---|
366 | # define LBSELCHSTRINGW L"commdlg_LBSelChangedNotify"
|
---|
367 | #else
|
---|
368 | static const WCHAR LBSELCHSTRINGW[] = { 'c','o','m','m','d','l','g','_',
|
---|
369 | 'L','B','S','e','l','C','h','a','n','g','e','d','N','o','t','i','f','y',0 };
|
---|
370 | #endif
|
---|
371 | #define LBSELCHSTRING WINELIB_NAME_AW(LBSELCHSTRING)
|
---|
372 |
|
---|
373 | #define SHAREVISTRINGA "commdlg_ShareViolation"
|
---|
374 | #if defined(__GNUC__)
|
---|
375 | # define SHAREVISTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \
|
---|
376 | 'S','h','a','r','e','V','i','o','l','a','t','i','o','n',0 }
|
---|
377 | #elif defined(_MSC_VER)
|
---|
378 | # define SHAREVISTRINGW L"commdlg_ShareViolation"
|
---|
379 | #else
|
---|
380 | static const WCHAR SHAREVISTRINGW[] = { 'c','o','m','m','d','l','g','_',
|
---|
381 | 'S','h','a','r','e','V','i','o','l','a','t','i','o','n',0 };
|
---|
382 | #endif
|
---|
383 | #define SHAREVISTRING WINELIB_NAME_AW(SHAREVISTRING)
|
---|
384 |
|
---|
385 | #define FILEOKSTRINGA "commdlg_FileNameOK"
|
---|
386 | #if defined(__GNUC__)
|
---|
387 | # define FILEOKSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \
|
---|
388 | 'F','i','l','e','N','a','m','e','O','K',0 }
|
---|
389 | #elif defined(_MSC_VER)
|
---|
390 | # define FILEOKSTRINGW L"commdlg_FileNameOK"
|
---|
391 | #else
|
---|
392 | static const WCHAR FILEOKSTRINGW[] = { 'c','o','m','m','d','l','g','_',
|
---|
393 | 'F','i','l','e','N','a','m','e','O','K',0 };
|
---|
394 | #endif
|
---|
395 | #define FILEOKSTRING WINELIB_NAME_AW(FILEOKSTRING)
|
---|
396 |
|
---|
397 | #define COLOROKSTRINGA "commdlg_ColorOK"
|
---|
398 | #if defined(__GNUC__)
|
---|
399 | # define COLOROKSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \
|
---|
400 | 'C','o','l','o','r','O','K',0 }
|
---|
401 | #elif defined(_MSC_VER)
|
---|
402 | # define COLOROKSTRINGW L"commdlg_ColorOK"
|
---|
403 | #else
|
---|
404 | static const WCHAR COLOROKSTRINGW[] = { 'c','o','m','m','d','l','g','_',
|
---|
405 | 'C','o','l','o','r','O','K',0 };
|
---|
406 | #endif
|
---|
407 | #define COLOROKSTRING WINELIB_NAME_AW(COLOROKSTRING)
|
---|
408 |
|
---|
409 | #define SETRGBSTRINGA "commdlg_SetRGBColor"
|
---|
410 | #if defined(__GNUC__)
|
---|
411 | # define SETRGBSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \
|
---|
412 | 'S','e','t','R','G','B','C','o','l','o','r',0 }
|
---|
413 | #elif defined(_MSC_VER)
|
---|
414 | # define SETRGBSTRINGW L"commdlg_SetRGBColor"
|
---|
415 | #else
|
---|
416 | static const WCHAR SETRGBSTRINGW[] = { 'c','o','m','m','d','l','g','_',
|
---|
417 | 'S','e','t','R','G','B','C','o','l','o','r',0 };
|
---|
418 | #endif
|
---|
419 | #define SETRGBSTRING WINELIB_NAME_AW(SETRGBSTRING)
|
---|
420 |
|
---|
421 | #define FINDMSGSTRINGA "commdlg_FindReplace"
|
---|
422 | #if defined(__GNUC__)
|
---|
423 | # define FINDMSGSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \
|
---|
424 | 'F','i','n','d','R','e','p','l','a','c','e',0 }
|
---|
425 | #elif defined(_MSC_VER)
|
---|
426 | # define FINDMSGSTRINGW L"commdlg_FindReplace"
|
---|
427 | #else
|
---|
428 | static const WCHAR FINDMSGSTRINGW[] = { 'c','o','m','m','d','l','g','_',
|
---|
429 | 'F','i','n','d','R','e','p','l','a','c','e',0 };
|
---|
430 | #endif
|
---|
431 | #define FINDMSGSTRING WINELIB_NAME_AW(FINDMSGSTRING)
|
---|
432 |
|
---|
433 | #define HELPMSGSTRINGA "commdlg_help"
|
---|
434 | #if defined(__GNUC__)
|
---|
435 | # define HELPMSGSTRINGW (const WCHAR []){ 'c','o','m','m','d','l','g','_', \
|
---|
436 | 'H','e','l','p',0 }
|
---|
437 | #elif defined(_MSC_VER)
|
---|
438 | # define HELPMSGSTRINGW L"commdlg_help"
|
---|
439 | #else
|
---|
440 | static const WCHAR HELPMSGSTRINGW[] = { 'c','o','m','m','d','l','g','_',
|
---|
441 | 'H','e','l','p',0 };
|
---|
442 | #endif
|
---|
443 | #define HELPMSGSTRING WINELIB_NAME_AW(HELPMSGSTRING)
|
---|
444 |
|
---|
445 | #define CD_LBSELNOITEMS -1
|
---|
446 | #define CD_LBSELCHANGE 0
|
---|
447 | #define CD_LBSELSUB 1
|
---|
448 | #define CD_LBSELADD 2
|
---|
449 |
|
---|
450 | #define CDN_FIRST (0U-601U)
|
---|
451 | #define CDN_LAST (0U-699U)
|
---|
452 |
|
---|
453 | #define CDN_INITDONE (CDN_FIRST - 0x0000)
|
---|
454 | #define CDN_SELCHANGE (CDN_FIRST - 0x0001)
|
---|
455 | #define CDN_FOLDERCHANGE (CDN_FIRST - 0x0002)
|
---|
456 | #define CDN_SHAREVIOLATION (CDN_FIRST - 0x0003)
|
---|
457 | #define CDN_HELP (CDN_FIRST - 0x0004)
|
---|
458 | #define CDN_FILEOK (CDN_FIRST - 0x0005)
|
---|
459 | #define CDN_TYPECHANGE (CDN_FIRST - 0x0006)
|
---|
460 | #define CDN_INCLUDEITEM (CDN_FIRST - 0x0007)
|
---|
461 |
|
---|
462 | #define CDM_FIRST (WM_USER + 100)
|
---|
463 | #define CDM_LAST (WM_USER + 200)
|
---|
464 |
|
---|
465 | #define CDM_GETSPEC (CDM_FIRST + 0x0000)
|
---|
466 | #define CDM_GETFILEPATH (CDM_FIRST + 0x0001)
|
---|
467 | #define CDM_GETFOLDERPATH (CDM_FIRST + 0x0002)
|
---|
468 | #define CDM_GETFOLDERIDLIST (CDM_FIRST + 0x0003)
|
---|
469 | #define CDM_SETCONTROLTEXT (CDM_FIRST + 0x0004)
|
---|
470 | #define CDM_HIDECONTROL (CDM_FIRST + 0x0005)
|
---|
471 | #define CDM_SETDEFEXT (CDM_FIRST + 0x0006)
|
---|
472 |
|
---|
473 |
|
---|
474 | /* Messages to query information from the open or save dialogs */
|
---|
475 |
|
---|
476 | #define CommDlg_OpenSave_GetSpecA(_hdlg, _psz, _cbmax) \
|
---|
477 | (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
|
---|
478 | #define CommDlg_OpenSave_GetSpecW(_hdlg, _psz, _cbmax) \
|
---|
479 | (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
|
---|
480 | #define CommDlg_OpenSave_GetSpec WINELIB_NAME_AW(CommDlg_OpenSave_GetSpec)
|
---|
481 |
|
---|
482 | #define CommDlg_OpenSave_GetFilePathA(_hdlg, _psz, _cbmax) \
|
---|
483 | (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
|
---|
484 | #define CommDlg_OpenSave_GetFilePathW(_hdlg, _psz, _cbmax) \
|
---|
485 | (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
|
---|
486 | #define CommDlg_OpenSave_GetFilePath WINELIB_NAME_AW(CommDlg_OpenSave_GetFilePath)
|
---|
487 |
|
---|
488 | #define CommDlg_OpenSave_GetFolderPathA(_hdlg, _psz, _cbmax) \
|
---|
489 | (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
|
---|
490 | #define CommDlg_OpenSave_GetFolderPathW(_hdlg, _psz, _cbmax) \
|
---|
491 | (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
|
---|
492 | #define CommDlg_OpenSave_GetFolderPath WINELIB_NAME_AW(CommDlg_OpenSave_GetFolderPath)
|
---|
493 |
|
---|
494 | #define CommDlg_OpenSave_GetFolderIDList(_hdlg, _pidl, _cbmax) \
|
---|
495 | (int)SNDMSG(_hdlg, CDM_GETFOLDERIDLIST, (WPARAM)_cbmax, (LPARAM)(LPVOID)_pidl)
|
---|
496 |
|
---|
497 | #define CommDlg_OpenSave_SetControlText(_hdlg, _id, _text) \
|
---|
498 | (void)SNDMSG(_hdlg, CDM_SETCONTROLTEXT, (WPARAM)_id, (LPARAM)(LPSTR)_text)
|
---|
499 |
|
---|
500 | #define CommDlg_OpenSave_HideControl(_hdlg, _id) \
|
---|
501 | (void)SNDMSG(_hdlg, CDM_HIDECONTROL, (WPARAM)_id, 0)
|
---|
502 |
|
---|
503 | #define CommDlg_OpenSave_SetDefExt(_hdlg, _pszext) \
|
---|
504 | (void)SNDMSG(_hdlg, CDM_SETDEFEXT, 0, (LPARAM)(LPSTR)_pszext)
|
---|
505 |
|
---|
506 | #define CommDlg_OpenSave_GetSpecA(_hdlg, _psz, _cbmax) \
|
---|
507 | (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
|
---|
508 | #define CommDlg_OpenSave_GetSpecW(_hdlg, _psz, _cbmax) \
|
---|
509 | (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
|
---|
510 | #define CommDlg_OpenSave_GetSpec WINELIB_NAME_AW(CommDlg_OpenSave_GetSpec)
|
---|
511 |
|
---|
512 | #define CommDlg_OpenSave_GetFilePathA(_hdlg, _psz, _cbmax) \
|
---|
513 | (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
|
---|
514 | #define CommDlg_OpenSave_GetFilePathW(_hdlg, _psz, _cbmax) \
|
---|
515 | (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
|
---|
516 | #define CommDlg_OpenSave_GetFilePath WINELIB_NAME_AW(CommDlg_OpenSave_GetFilePath)
|
---|
517 |
|
---|
518 | #define CommDlg_OpenSave_GetFolderPathA(_hdlg, _psz, _cbmax) \
|
---|
519 | (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)_cbmax, (LPARAM)(LPSTR)_psz)
|
---|
520 | #define CommDlg_OpenSave_GetFolderPathW(_hdlg, _psz, _cbmax) \
|
---|
521 | (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)_cbmax, (LPARAM)(LPWSTR)_psz)
|
---|
522 | #define CommDlg_OpenSave_GetFolderPath WINELIB_NAME_AW(CommDlg_OpenSave_GetFolderPath)
|
---|
523 |
|
---|
524 | #define CommDlg_OpenSave_GetFolderIDList(_hdlg, _pidl, _cbmax) \
|
---|
525 | (int)SNDMSG(_hdlg, CDM_GETFOLDERIDLIST, (WPARAM)_cbmax, (LPARAM)(LPVOID)_pidl)
|
---|
526 |
|
---|
527 | #define CommDlg_OpenSave_SetControlText(_hdlg, _id, _text) \
|
---|
528 | (void)SNDMSG(_hdlg, CDM_SETCONTROLTEXT, (WPARAM)_id, (LPARAM)(LPSTR)_text)
|
---|
529 |
|
---|
530 | #define CommDlg_OpenSave_HideControl(_hdlg, _id) \
|
---|
531 | (void)SNDMSG(_hdlg, CDM_HIDECONTROL, (WPARAM)_id, 0)
|
---|
532 |
|
---|
533 | #define CommDlg_OpenSave_SetDefExt(_hdlg, _pszext) \
|
---|
534 | (void)SNDMSG(_hdlg, CDM_SETDEFEXT, 0, (LPARAM)(LPSTR)_pszext)
|
---|
535 |
|
---|
536 |
|
---|
537 | typedef UINT (CALLBACK *LPPRINTHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
|
---|
538 | typedef UINT (CALLBACK *LPSETUPHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
|
---|
539 |
|
---|
540 | typedef struct tagPDA
|
---|
541 | {
|
---|
542 | DWORD lStructSize;
|
---|
543 | HWND hwndOwner;
|
---|
544 | HGLOBAL hDevMode;
|
---|
545 | HGLOBAL hDevNames;
|
---|
546 | HDC hDC;
|
---|
547 | DWORD Flags;
|
---|
548 | WORD nFromPage;
|
---|
549 | WORD nToPage;
|
---|
550 | WORD nMinPage;
|
---|
551 | WORD nMaxPage;
|
---|
552 | WORD nCopies;
|
---|
553 | HINSTANCE hInstance;
|
---|
554 | LPARAM lCustData;
|
---|
555 | LPPRINTHOOKPROC lpfnPrintHook;
|
---|
556 | LPSETUPHOOKPROC lpfnSetupHook;
|
---|
557 | LPCSTR lpPrintTemplateName;
|
---|
558 | LPCSTR lpSetupTemplateName;
|
---|
559 | HGLOBAL hPrintTemplate;
|
---|
560 | HGLOBAL hSetupTemplate;
|
---|
561 | } PRINTDLGA, *LPPRINTDLGA;
|
---|
562 |
|
---|
563 | typedef struct tagPDW
|
---|
564 | {
|
---|
565 | DWORD lStructSize;
|
---|
566 | HWND hwndOwner;
|
---|
567 | HGLOBAL hDevMode;
|
---|
568 | HGLOBAL hDevNames;
|
---|
569 | HDC hDC;
|
---|
570 | DWORD Flags;
|
---|
571 | WORD nFromPage;
|
---|
572 | WORD nToPage;
|
---|
573 | WORD nMinPage;
|
---|
574 | WORD nMaxPage;
|
---|
575 | WORD nCopies;
|
---|
576 | HINSTANCE hInstance;
|
---|
577 | LPARAM lCustData;
|
---|
578 | LPPRINTHOOKPROC lpfnPrintHook;
|
---|
579 | LPSETUPHOOKPROC lpfnSetupHook;
|
---|
580 | LPCWSTR lpPrintTemplateName;
|
---|
581 | LPCWSTR lpSetupTemplateName;
|
---|
582 | HGLOBAL hPrintTemplate;
|
---|
583 | HGLOBAL hSetupTemplate;
|
---|
584 | } PRINTDLGW, *LPPRINTDLGW;
|
---|
585 |
|
---|
586 | DECL_WINELIB_TYPE_AW(PRINTDLG)
|
---|
587 | DECL_WINELIB_TYPE_AW(LPPRINTDLG)
|
---|
588 |
|
---|
589 | #define PD_ALLPAGES 0x00000000
|
---|
590 | #define PD_SELECTION 0x00000001
|
---|
591 | #define PD_PAGENUMS 0x00000002
|
---|
592 | #define PD_NOSELECTION 0x00000004
|
---|
593 | #define PD_NOPAGENUMS 0x00000008
|
---|
594 | #define PD_COLLATE 0x00000010
|
---|
595 | #define PD_PRINTTOFILE 0x00000020
|
---|
596 | #define PD_PRINTSETUP 0x00000040
|
---|
597 | #define PD_NOWARNING 0x00000080
|
---|
598 | #define PD_RETURNDC 0x00000100
|
---|
599 | #define PD_RETURNIC 0x00000200
|
---|
600 | #define PD_RETURNDEFAULT 0x00000400
|
---|
601 | #define PD_SHOWHELP 0x00000800
|
---|
602 | #define PD_ENABLEPRINTHOOK 0x00001000
|
---|
603 | #define PD_ENABLESETUPHOOK 0x00002000
|
---|
604 | #define PD_ENABLEPRINTTEMPLATE 0x00004000
|
---|
605 | #define PD_ENABLESETUPTEMPLATE 0x00008000
|
---|
606 | #define PD_ENABLEPRINTTEMPLATEHANDLE 0x00010000
|
---|
607 | #define PD_ENABLESETUPTEMPLATEHANDLE 0x00020000
|
---|
608 | #define PD_USEDEVMODECOPIES 0x00040000
|
---|
609 | #define PD_USEDEVMODECOPIESANDCOLLATE 0x00040000
|
---|
610 | #define PD_DISABLEPRINTTOFILE 0x00080000
|
---|
611 | #define PD_HIDEPRINTTOFILE 0x00100000
|
---|
612 | #define PD_NONETWORKBUTTON 0x00200000
|
---|
613 | #define PD_CURRENTPAGE 0x00400000
|
---|
614 | #define PD_NOCURRENTPAGE 0x00800000
|
---|
615 | #define PD_EXCLUSIONFLAGS 0x01000000
|
---|
616 | #define PD_USELARGETEMPLATE 0x10000000
|
---|
617 |
|
---|
618 |
|
---|
619 | #define PD_EXCL_COPIESANDCOLLATE (DM_COPIES | DM_COLLATE)
|
---|
620 |
|
---|
621 | #define START_PAGE_GENERAL 0xffffffff
|
---|
622 |
|
---|
623 | #define PD_RESULT_CANCEL 0
|
---|
624 | #define PD_RESULT_PRINT 1
|
---|
625 | #define PD_RESULT_APPLY 2
|
---|
626 |
|
---|
627 | typedef struct
|
---|
628 | {
|
---|
629 | WORD wDriverOffset;
|
---|
630 | WORD wDeviceOffset;
|
---|
631 | WORD wOutputOffset;
|
---|
632 | WORD wDefault;
|
---|
633 | } DEVNAMES;
|
---|
634 | typedef DEVNAMES * LPDEVNAMES;
|
---|
635 |
|
---|
636 | #define DN_DEFAULTPRN 0x0001
|
---|
637 |
|
---|
638 | /* PageSetupDlg stuff ... */
|
---|
639 | #define WM_PSD_PAGESETUPDLG (WM_USER )
|
---|
640 | #define WM_PSD_FULLPAGERECT (WM_USER+1)
|
---|
641 | #define WM_PSD_MINMARGINRECT (WM_USER+2)
|
---|
642 | #define WM_PSD_MARGINRECT (WM_USER+3)
|
---|
643 | #define WM_PSD_GREEKTEXTRECT (WM_USER+4)
|
---|
644 | #define WM_PSD_ENVSTAMPRECT (WM_USER+5)
|
---|
645 | #define WM_PSD_YAFULLPAGERECT (WM_USER+6)
|
---|
646 |
|
---|
647 | typedef UINT (CALLBACK *LPPAGEPAINTHOOK)( HWND, UINT, WPARAM, LPARAM );
|
---|
648 | typedef UINT (CALLBACK *LPPAGESETUPHOOK)( HWND, UINT, WPARAM, LPARAM );
|
---|
649 |
|
---|
650 | typedef struct tagPSDA
|
---|
651 | {
|
---|
652 | DWORD lStructSize;
|
---|
653 | HWND hwndOwner;
|
---|
654 | HGLOBAL hDevMode;
|
---|
655 | HGLOBAL hDevNames;
|
---|
656 | DWORD Flags;
|
---|
657 | POINT ptPaperSize;
|
---|
658 | RECT rtMinMargin;
|
---|
659 | RECT rtMargin;
|
---|
660 | HINSTANCE hInstance;
|
---|
661 | LPARAM lCustData;
|
---|
662 | LPPAGESETUPHOOK lpfnPageSetupHook;
|
---|
663 | LPPAGEPAINTHOOK lpfnPagePaintHook;
|
---|
664 | LPCSTR lpPageSetupTemplateName;
|
---|
665 | HGLOBAL hPageSetupTemplate;
|
---|
666 | } PAGESETUPDLGA,*LPPAGESETUPDLGA;
|
---|
667 |
|
---|
668 | typedef struct tagPSDW
|
---|
669 | {
|
---|
670 | DWORD lStructSize;
|
---|
671 | HWND hwndOwner;
|
---|
672 | HGLOBAL hDevMode;
|
---|
673 | HGLOBAL hDevNames;
|
---|
674 | DWORD Flags;
|
---|
675 | POINT ptPaperSize;
|
---|
676 | RECT rtMinMargin;
|
---|
677 | RECT rtMargin;
|
---|
678 | HINSTANCE hInstance;
|
---|
679 | LPARAM lCustData;
|
---|
680 | LPPAGESETUPHOOK lpfnPageSetupHook;
|
---|
681 | LPPAGEPAINTHOOK lpfnPagePaintHook;
|
---|
682 | LPCWSTR lpPageSetupTemplateName;
|
---|
683 | HGLOBAL hPageSetupTemplate;
|
---|
684 | } PAGESETUPDLGW,*LPPAGESETUPDLGW;
|
---|
685 | DECL_WINELIB_TYPE_AW(PAGESETUPDLG)
|
---|
686 | DECL_WINELIB_TYPE_AW(LPPAGESETUPDLG)
|
---|
687 |
|
---|
688 | #define PSD_DEFAULTMINMARGINS 0x00000000
|
---|
689 | #define PSD_INWININIINTLMEASURE 0x00000000
|
---|
690 |
|
---|
691 | #define PSD_MINMARGINS 0x00000001
|
---|
692 | #define PSD_MARGINS 0x00000002
|
---|
693 | #define PSD_INTHOUSANDTHSOFINCHES 0x00000004
|
---|
694 | #define PSD_INHUNDREDTHSOFMILLIMETERS 0x00000008
|
---|
695 | #define PSD_DISABLEMARGINS 0x00000010
|
---|
696 | #define PSD_DISABLEPRINTER 0x00000020
|
---|
697 | #define PSD_NOWARNING 0x00000080
|
---|
698 | #define PSD_DISABLEORIENTATION 0x00000100
|
---|
699 | #define PSD_RETURNDEFAULT 0x00000400
|
---|
700 | #define PSD_DISABLEPAPER 0x00000200
|
---|
701 | #define PSD_SHOWHELP 0x00000800
|
---|
702 | #define PSD_ENABLEPAGESETUPHOOK 0x00002000
|
---|
703 | #define PSD_ENABLEPAGESETUPTEMPLATE 0x00008000
|
---|
704 | #define PSD_ENABLEPAGESETUPTEMPLATEHANDLE 0x00020000
|
---|
705 | #define PSD_ENABLEPAGEPAINTHOOK 0x00040000
|
---|
706 | #define PSD_DISABLEPAGEPAINTING 0x00080000
|
---|
707 | #define PSD_NONETWORKBUTTON 0x00200000
|
---|
708 |
|
---|
709 | typedef struct tagPRINTPAGERANGE
|
---|
710 | {
|
---|
711 | DWORD nFromPage;
|
---|
712 | DWORD nToPage;
|
---|
713 | } PRINTPAGERANGE, *LPPRINTPAGERANGE;
|
---|
714 |
|
---|
715 | typedef struct tagPDEXA
|
---|
716 | {
|
---|
717 | DWORD lStructSize;
|
---|
718 | HWND hwndOwner;
|
---|
719 | HGLOBAL hDevMode;
|
---|
720 | HGLOBAL hDevNames;
|
---|
721 | HDC hDC;
|
---|
722 | DWORD Flags;
|
---|
723 | DWORD Flags2;
|
---|
724 | DWORD ExclusionFlags;
|
---|
725 | DWORD nPageRanges;
|
---|
726 | DWORD nMaxPageRanges;
|
---|
727 | LPPRINTPAGERANGE lpPageRanges;
|
---|
728 | DWORD nMinPage;
|
---|
729 | DWORD nMaxPage;
|
---|
730 | DWORD nCopies;
|
---|
731 | HINSTANCE hInstance;
|
---|
732 | LPCSTR lpPrintTemplateName;
|
---|
733 | void* /*LPUNKNOWN*/ lpCallback;
|
---|
734 | DWORD nPropertyPages;
|
---|
735 | HPROPSHEETPAGE* lphPropertyPages;
|
---|
736 | DWORD nStartPage;
|
---|
737 | DWORD dwResultAction;
|
---|
738 | } PRINTDLGEXA, *LPPRINTDLGEXA;
|
---|
739 |
|
---|
740 | typedef struct tagPDEXW
|
---|
741 | {
|
---|
742 | DWORD lStructSize;
|
---|
743 | HWND hwndOwner;
|
---|
744 | HGLOBAL hDevMode;
|
---|
745 | HGLOBAL hDevNames;
|
---|
746 | HDC hDC;
|
---|
747 | DWORD Flags;
|
---|
748 | DWORD Flags2;
|
---|
749 | DWORD ExclusionFlags;
|
---|
750 | DWORD nPageRanges;
|
---|
751 | DWORD nMaxPageRanges;
|
---|
752 | LPPRINTPAGERANGE lpPageRanges;
|
---|
753 | DWORD nMinPage;
|
---|
754 | DWORD nMaxPage;
|
---|
755 | DWORD nCopies;
|
---|
756 | HINSTANCE hInstance;
|
---|
757 | LPCWSTR lpPrintTemplateName;
|
---|
758 | void* /*LPUNKNOWN*/ lpCallback;
|
---|
759 | DWORD nPropertyPages;
|
---|
760 | HPROPSHEETPAGE* lphPropertyPages;
|
---|
761 | DWORD nStartPage;
|
---|
762 | DWORD dwResultAction;
|
---|
763 | } PRINTDLGEXW, *LPPRINTDLGEXW;
|
---|
764 |
|
---|
765 | DECL_WINELIB_TYPE_AW(PRINTDLGEX)
|
---|
766 | DECL_WINELIB_TYPE_AW(LPPRINTDLGEX)
|
---|
767 |
|
---|
768 | BOOL WINAPI ChooseColorA(LPCHOOSECOLORA lpChCol);
|
---|
769 | BOOL WINAPI ChooseColorW(LPCHOOSECOLORW lpChCol);
|
---|
770 | #define ChooseColor WINELIB_NAME_AW(ChooseColor)
|
---|
771 | DWORD WINAPI CommDlgExtendedError(void);
|
---|
772 | HWND WINAPI FindTextA(LPFINDREPLACEA lpFind);
|
---|
773 | HWND WINAPI FindTextW(LPFINDREPLACEW lpFind);
|
---|
774 | #define FindText WINELIB_NAME_AW(FindText)
|
---|
775 | short WINAPI GetFileTitleA(LPCSTR lpFile, LPSTR lpTitle, WORD cbBuf);
|
---|
776 | short WINAPI GetFileTitleW(LPCWSTR lpFile, LPWSTR lpTitle, WORD cbBuf);
|
---|
777 | #define GetFileTitle WINELIB_NAME_AW(GetFileTitle)
|
---|
778 | BOOL WINAPI GetOpenFileNameA(LPOPENFILENAMEA ofn);
|
---|
779 | BOOL WINAPI GetOpenFileNameW(LPOPENFILENAMEW ofn);
|
---|
780 | #define GetOpenFileName WINELIB_NAME_AW(GetOpenFileName)
|
---|
781 | BOOL WINAPI GetSaveFileNameA(LPOPENFILENAMEA ofn);
|
---|
782 | BOOL WINAPI GetSaveFileNameW(LPOPENFILENAMEW ofn);
|
---|
783 | #define GetSaveFileName WINELIB_NAME_AW(GetSaveFileName)
|
---|
784 | BOOL WINAPI PageSetupDlgA( LPPAGESETUPDLGA );
|
---|
785 | BOOL WINAPI PageSetupDlgW( LPPAGESETUPDLGW );
|
---|
786 | #define PageSetupDlg WINELIB_NAME_AW(PageSetupDlg)
|
---|
787 | BOOL WINAPI PrintDlgA( LPPRINTDLGA printdlg);
|
---|
788 | BOOL WINAPI PrintDlgW( LPPRINTDLGW printdlg);
|
---|
789 | #define PrintDlg WINELIB_NAME_AW(PrintDlg)
|
---|
790 | HRESULT WINAPI PrintDlgExA(LPPRINTDLGEXA);
|
---|
791 | HRESULT WINAPI PrintDlgExW(LPPRINTDLGEXW);
|
---|
792 | #define PrintDlgEx WINELIB_NAME_AW(PrintDlgEx)
|
---|
793 | HWND WINAPI ReplaceTextA( LPFINDREPLACEA lpFind);
|
---|
794 | HWND WINAPI ReplaceTextW( LPFINDREPLACEW lpFind);
|
---|
795 | #define ReplaceText WINELIB_NAME_AW(ReplaceText)
|
---|
796 | BOOL WINAPI ChooseFontA(LPCHOOSEFONTA);
|
---|
797 | BOOL WINAPI ChooseFontW(LPCHOOSEFONTW);
|
---|
798 | #define ChooseFont WINELIB_NAME_AW(ChooseFont)
|
---|
799 |
|
---|
800 | void COMDLG32_SetCommDlgExtendedError(DWORD err);
|
---|
801 |
|
---|
802 |
|
---|
803 | #ifndef _WIN64
|
---|
804 | #include <poppack.h>
|
---|
805 | #endif
|
---|
806 |
|
---|
807 | #ifdef __cplusplus
|
---|
808 | }
|
---|
809 | #endif
|
---|
810 |
|
---|
811 | #endif /* __WINE_COMMDLG_H */
|
---|