2 * Common Dialog Boxes interface (32 bit)
4 * Copyright 1998 Bertho A. Stultiens
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.
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.
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef _WINE_DLL_CDLG_H
22 #define _WINE_DLL_CDLG_H
25 #include "wine/windef16.h"
27 /*---------------- 16-bit ----------------*/
28 extern HINSTANCE16 COMMDLG_hInstance
;
29 extern HINSTANCE COMMDLG_hInstance32
;
31 /*---------------- 32-bit ----------------*/
33 /* Common dialogs implementation globals */
34 #define COMDLG32_Atom ((ATOM)0xa000) /* MS uses this one to identify props */
36 extern HINSTANCE COMDLG32_hInstance
;
38 void COMDLG32_SetCommDlgExtendedError(DWORD err
);
39 LPVOID
COMDLG32_AllocMem(int size
);
43 /* Find/Replace local definitions */
45 #define FR_WINE_UNICODE 0x80000000
46 #define FR_WINE_REPLACE 0x40000000
49 FINDREPLACEA fr
; /* Internally used structure */
51 FINDREPLACEA
*fra
; /* Reference to the user supplied structure */
56 #define PD32_PRINT_TITLE 7000
58 #define PD32_VALUE_UREADABLE 1104
59 #define PD32_INVALID_PAGE_RANGE 1105
60 #define PD32_FROM_NOT_ABOVE_TO 1106
61 #define PD32_MARGINS_OVERLAP 1107
62 #define PD32_NR_OF_COPIES_EMPTY 1108
63 #define PD32_TOO_LARGE_COPIES 1109
64 #define PD32_PRINT_ERROR 1110
65 #define PD32_NO_DEFAULT_PRINTER 1111
66 #define PD32_CANT_FIND_PRINTER 1112
67 #define PD32_OUT_OF_MEMORY 1113
68 #define PD32_GENERIC_ERROR 1114
69 #define PD32_DRIVER_UNKNOWN 1115
71 #define PD32_PRINTER_STATUS_READY 1536
72 #define PD32_PRINTER_STATUS_PAUSED 1537
73 #define PD32_PRINTER_STATUS_ERROR 1538
74 #define PD32_PRINTER_STATUS_PENDING_DELETION 1539
75 #define PD32_PRINTER_STATUS_PAPER_JAM 1540
76 #define PD32_PRINTER_STATUS_PAPER_OUT 1541
77 #define PD32_PRINTER_STATUS_MANUAL_FEED 1542
78 #define PD32_PRINTER_STATUS_PAPER_PROBLEM 1543
79 #define PD32_PRINTER_STATUS_OFFLINE 1544
80 #define PD32_PRINTER_STATUS_IO_ACTIVE 1545
81 #define PD32_PRINTER_STATUS_BUSY 1546
82 #define PD32_PRINTER_STATUS_PRINTING 1547
83 #define PD32_PRINTER_STATUS_OUTPUT_BIN_FULL 1548
84 #define PD32_PRINTER_STATUS_NOT_AVAILABLE 1549
85 #define PD32_PRINTER_STATUS_WAITING 1550
86 #define PD32_PRINTER_STATUS_PROCESSING 1551
87 #define PD32_PRINTER_STATUS_INITIALIZING 1552
88 #define PD32_PRINTER_STATUS_WARMING_UP 1553
89 #define PD32_PRINTER_STATUS_TONER_LOW 1554
90 #define PD32_PRINTER_STATUS_NO_TONER 1555
91 #define PD32_PRINTER_STATUS_PAGE_PUNT 1556
92 #define PD32_PRINTER_STATUS_USER_INTERVENTION 1557
93 #define PD32_PRINTER_STATUS_OUT_OF_MEMORY 1558
94 #define PD32_PRINTER_STATUS_DOOR_OPEN 1559
95 #define PD32_PRINTER_STATUS_SERVER_UNKNOWN 1560
96 #define PD32_PRINTER_STATUS_POWER_SAVE 1561
98 #define PD32_DEFAULT_PRINTER 1582
99 #define PD32_NR_OF_DOCUMENTS_IN_QUEUE 1583
100 #define PD32_PRINT_ALL_X_PAGES 1584
101 #define PD32_MARGINS_IN_INCHES 1585
102 #define PD32_MARGINS_IN_MILIMETERS 1586
103 #define PD32_MILIMETERS 1587
105 #include "commctrl.h"
107 #include "shellapi.h"
111 extern LPITEMIDLIST (WINAPI
*COMDLG32_PIDL_ILClone
) (LPCITEMIDLIST
);
112 extern LPITEMIDLIST (WINAPI
*COMDLG32_PIDL_ILCombine
)(LPCITEMIDLIST
,LPCITEMIDLIST
);
113 extern LPITEMIDLIST (WINAPI
*COMDLG32_PIDL_ILGetNext
)(LPITEMIDLIST
);
114 extern BOOL (WINAPI
*COMDLG32_PIDL_ILRemoveLastID
)(LPCITEMIDLIST
);
115 extern BOOL (WINAPI
*COMDLG32_PIDL_ILIsEqual
)(LPCITEMIDLIST
, LPCITEMIDLIST
);
118 extern LPVOID (WINAPI
*COMDLG32_SHAlloc
)(DWORD
);
119 extern DWORD (WINAPI
*COMDLG32_SHFree
)(LPVOID
);
120 extern BOOL (WINAPI
*COMDLG32_SHGetFolderPathA
)(HWND
,int,HANDLE
,DWORD
,LPSTR
);
122 extern BOOL WINAPI
GetFileDialog95A(LPOPENFILENAMEA ofn
,UINT iDlgType
);
123 extern BOOL WINAPI
GetFileDialog95W(LPOPENFILENAMEW ofn
,UINT iDlgType
);
127 #include "pshpack1.h"
129 typedef UINT16 (CALLBACK
*LPOFNHOOKPROC16
)(HWND16
,UINT16
,WPARAM16
,LPARAM
);
134 HINSTANCE16 hInstance
;
136 SEGPTR lpstrCustomFilter
;
137 DWORD nMaxCustFilter
;
141 SEGPTR lpstrFileTitle
;
143 SEGPTR lpstrInitialDir
;
147 UINT16 nFileExtension
;
150 LPOFNHOOKPROC16 lpfnHook
;
151 SEGPTR lpTemplateName
;
152 } OPENFILENAME16
,*LPOPENFILENAME16
;
154 typedef UINT16 (CALLBACK
*LPCCHOOKPROC16
) (HWND16
, UINT16
, WPARAM16
, LPARAM
);
164 LPCCHOOKPROC16 lpfnHook
;
165 SEGPTR lpTemplateName
;
167 typedef CHOOSECOLOR16
*LPCHOOSECOLOR16
;
169 typedef UINT16 (CALLBACK
*LPFRHOOKPROC16
)(HWND16
,UINT16
,WPARAM16
,LPARAM
);
171 DWORD lStructSize
; /* size of this struct 0x20 */
172 HWND16 hwndOwner
; /* handle to owner's window */
173 HINSTANCE16 hInstance
; /* instance handle of.EXE that */
174 /* contains cust. dlg. template */
175 DWORD Flags
; /* one or more of the FR_?? */
176 SEGPTR lpstrFindWhat
; /* ptr. to search string */
177 SEGPTR lpstrReplaceWith
; /* ptr. to replace string */
178 UINT16 wFindWhatLen
; /* size of find buffer */
179 UINT16 wReplaceWithLen
; /* size of replace buffer */
180 LPARAM lCustData
; /* data passed to hook fn. */
181 LPFRHOOKPROC16 lpfnHook
;
182 SEGPTR lpTemplateName
; /* custom template name */
183 } FINDREPLACE16
, *LPFINDREPLACE16
;
185 typedef UINT16 (CALLBACK
*LPCFHOOKPROC16
)(HWND16
,UINT16
,WPARAM16
,LPARAM
);
189 HWND16 hwndOwner
; /* caller's window handle */
190 HDC16 hDC
; /* printer DC/IC or NULL */
191 SEGPTR lpLogFont
; /* ptr. to a LOGFONT struct */
192 short iPointSize
; /* 10 * size in points of selected font */
193 DWORD Flags
; /* enum. type flags */
194 COLORREF rgbColors
; /* returned text color */
195 LPARAM lCustData
; /* data passed to hook fn. */
196 LPCFHOOKPROC16 lpfnHook
;
197 SEGPTR lpTemplateName
; /* custom template name */
198 HINSTANCE16 hInstance
; /* instance handle of.EXE that */
199 /* contains cust. dlg. template */
200 SEGPTR lpszStyle
; /* return the style field here */
201 /* must be LF_FACESIZE or bigger */
202 UINT16 nFontType
; /* same value reported to the */
203 /* EnumFonts callback with the */
204 /* extra FONTTYPE_ bits added */
205 short nSizeMin
; /* minimum pt size allowed & */
206 short nSizeMax
; /* max pt size allowed if */
207 /* CF_LIMITSIZE is used */
208 } CHOOSEFONT16
, *LPCHOOSEFONT16
;
211 typedef UINT16 (CALLBACK
*LPPRINTHOOKPROC16
) (HWND16
, UINT16
, WPARAM16
, LPARAM
);
212 typedef UINT16 (CALLBACK
*LPSETUPHOOKPROC16
) (HWND16
, UINT16
, WPARAM16
, LPARAM
);
226 HINSTANCE16 hInstance
;
228 LPPRINTHOOKPROC16 lpfnPrintHook
;
229 LPSETUPHOOKPROC16 lpfnSetupHook
;
230 SEGPTR lpPrintTemplateName
;
231 SEGPTR lpSetupTemplateName
;
232 HGLOBAL16 hPrintTemplate
;
233 HGLOBAL16 hSetupTemplate
;
234 } PRINTDLG16
, *LPPRINTDLG16
;
236 BOOL16 WINAPI
ChooseColor16(LPCHOOSECOLOR16 lpChCol
);
237 HWND16 WINAPI
FindText16( SEGPTR find
);
238 INT16 WINAPI
GetFileTitle16(LPCSTR lpFile
, LPSTR lpTitle
, UINT16 cbBuf
);
239 BOOL16 WINAPI
GetOpenFileName16(SEGPTR ofn
);
240 BOOL16 WINAPI
GetSaveFileName16(SEGPTR ofn
);
241 BOOL16 WINAPI
PrintDlg16( LPPRINTDLG16 print
);
242 HWND16 WINAPI
ReplaceText16( SEGPTR find
);
243 BOOL16 WINAPI
ChooseFont16(LPCHOOSEFONT16
);
247 #endif /* _WINE_DLL_CDLG_H */