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