Changeset 1546 for trunk/include/win/commdlg.h
- Timestamp:
- Nov 2, 1999, 8:06:43 PM (26 years ago)
- File:
-
- 1 edited
-
trunk/include/win/commdlg.h (modified) (24 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/win/commdlg.h
r900 r1546 1 /* $Id: commdlg.h,v 1.2 1999-09-09 21:04:37 phaller Exp $ */ 2 3 /* 1 /* $Id: commdlg.h,v 1.3 1999-11-02 19:06:42 sandervl Exp $ */ 2 /* 4 3 * COMMDLG - Common Wine Dialog ... :-) 5 4 */ … … 14 13 #include "windef.h" /* needed for CHOOSEFONT structure */ 15 14 #include "winuser.h" 15 #include "pshpack1.h" 16 16 17 17 #define OFN_READONLY 0x00000001 … … 32 32 #define OFN_NOREADONLYRETURN 0x00008000 33 33 #define OFN_NOTESTFILECREATE 0x00010000 34 #define OFN_NONETWORKBUTTON 0x00020000 34 #define OFN_NONETWORKBUTTON 0x00020000 35 35 #define OFN_NOLONGNAMES 0x00040000 36 36 #define OFN_EXPLORER 0x00080000 … … 45 45 #define OFN_SHARENOWARN 1 46 46 #define OFN_SHAREWARN 0 47 48 #define SAVE_DIALOG 1 49 #define OPEN_DIALOG 2 50 51 typedef UINT16 (CALLBACK *LPOFNHOOKPROC16)(HWND16,UINT16,WPARAM16,LPARAM); 52 typedef UINT (CALLBACK *LPOFNHOOKPROC)(HWND,UINT,WPARAM,LPARAM); 47 53 48 54 typedef struct { … … 65 71 SEGPTR lpstrDefExt; 66 72 LPARAM lCustData; 67 WNDPROC16lpfnHook;73 LPOFNHOOKPROC16 lpfnHook; 68 74 SEGPTR lpTemplateName; 69 75 } OPENFILENAME16,*LPOPENFILENAME16; … … 88 94 LPCSTR lpstrDefExt; 89 95 LPARAM lCustData; 90 WNDPROC lpfnHook;96 LPOFNHOOKPROC lpfnHook; 91 97 LPCSTR lpTemplateName; 92 98 } OPENFILENAMEA,*LPOPENFILENAMEA; … … 111 117 LPCWSTR lpstrDefExt; 112 118 LPARAM lCustData; 113 WNDPROC lpfnHook;119 LPOFNHOOKPROC lpfnHook; 114 120 LPCWSTR lpTemplateName; 115 121 } OPENFILENAMEW,*LPOPENFILENAMEW; … … 134 140 DECL_WINELIB_TYPE_AW(OFNOTIFY) 135 141 DECL_WINELIB_TYPE_AW(LPOFNOTIFY) 136 137 typedef UINT (* CALLBACK LPCCHOOKPROC) (HWND, UINT, WPARAM, LPARAM); 142 143 typedef UINT16 (CALLBACK *LPCCHOOKPROC16) (HWND16, UINT16, WPARAM16, LPARAM); 144 typedef UINT (CALLBACK *LPCCHOOKPROC) (HWND, UINT, WPARAM, LPARAM); 138 145 139 146 typedef struct { … … 145 152 DWORD Flags; 146 153 LPARAM lCustData; 147 WNDPROC16lpfnHook;154 LPCCHOOKPROC16 lpfnHook; 148 155 SEGPTR lpTemplateName; 149 156 } CHOOSECOLOR16; … … 187 194 #define CC_ENABLETEMPLATE 0x00000020 188 195 #define CC_ENABLETEMPLATEHANDLE 0x00000040 196 197 typedef UINT16 (CALLBACK *LPFRHOOKPROC16)(HWND16,UINT16,WPARAM16,LPARAM); 198 typedef UINT (CALLBACK *LPFRHOOKPROC)(HWND,UINT,WPARAM,LPARAM); 189 199 190 200 typedef struct { … … 199 209 UINT16 wReplaceWithLen; /* size of replace buffer */ 200 210 LPARAM lCustData; /* data passed to hook fn. */ 201 WNDPROC16lpfnHook;211 LPFRHOOKPROC16 lpfnHook; 202 212 SEGPTR lpTemplateName; /* custom template name */ 203 213 } FINDREPLACE16, *LPFINDREPLACE16; … … 214 224 WORD wReplaceWithLen; 215 225 LPARAM lCustData; 216 WNDPROClpfnHook;226 LPFRHOOKPROC lpfnHook; 217 227 LPCSTR lpTemplateName; 218 228 } FINDREPLACEA, *LPFINDREPLACEA; … … 229 239 WORD wReplaceWithLen; 230 240 LPARAM lCustData; 231 WNDPROClpfnHook;241 LPFRHOOKPROC lpfnHook; 232 242 LPCWSTR lpTemplateName; 233 243 } FINDREPLACEW, *LPFINDREPLACEW; … … 254 264 #define FR_HIDEWHOLEWORD 0x00010000 255 265 256 257 #include "pshpack1.h" 258 259 typedef struct 266 typedef UINT16 (CALLBACK *LPCFHOOKPROC16)(HWND16,UINT16,WPARAM16,LPARAM); 267 typedef UINT (CALLBACK *LPCFHOOKPROC)(HWND,UINT,WPARAM,LPARAM); 268 269 typedef struct 260 270 { 261 271 DWORD lStructSize; … … 264 274 SEGPTR lpLogFont; /* ptr. to a LOGFONT struct */ 265 275 short iPointSize; /* 10 * size in points of selected font */ 266 DWORD Flags WINE_PACKED; /* enum. type flags */276 DWORD Flags; /* enum. type flags */ 267 277 COLORREF rgbColors; /* returned text color */ 268 278 LPARAM lCustData; /* data passed to hook fn. */ 269 WNDPROC16lpfnHook;279 LPCFHOOKPROC16 lpfnHook; 270 280 SEGPTR lpTemplateName; /* custom template name */ 271 281 HINSTANCE16 hInstance; /* instance handle of.EXE that */ 272 282 /* contains cust. dlg. template */ 273 SEGPTR lpszStyle WINE_PACKED; /* return the style field here */283 SEGPTR lpszStyle; /* return the style field here */ 274 284 /* must be LF_FACESIZE or bigger */ 275 285 UINT16 nFontType; /* same value reported to the */ 276 286 /* EnumFonts callback with the */ 277 287 /* extra FONTTYPE_ bits added */ 278 short nSizeMin WINE_PACKED; /* minimum pt size allowed & */279 short nSizeMax WINE_PACKED; /* max pt size allowed if */288 short nSizeMin; /* minimum pt size allowed & */ 289 short nSizeMax; /* max pt size allowed if */ 280 290 /* CF_LIMITSIZE is used */ 281 291 } CHOOSEFONT16, *LPCHOOSEFONT16; … … 284 294 typedef struct 285 295 { 286 UINT lStructSize; 287 HWND hwndOwner; 288 HDC hDC; 289 LPLOGFONTA lpLogFont; 290 INT iPointSize; 291 DWORD Flags; 292 COLORREF rgbColors; 293 LPARAM lCustData; 294 WNDPROC lpfnHook;295 LPCSTR lpTemplateName; 296 HINSTANCE hInstance; 297 LPSTR lpszStyle; 298 UINT16 nFontType; 299 UINT16 ___MISSING_ALIGNMENT__; 300 INT nSizeMin; 301 INT nSizeMax; 296 UINT lStructSize; 297 HWND hwndOwner; 298 HDC hDC; 299 LPLOGFONTA lpLogFont; 300 INT iPointSize; 301 DWORD Flags; 302 COLORREF rgbColors; 303 LPARAM lCustData; 304 LPCFHOOKPROC lpfnHook; 305 LPCSTR lpTemplateName; 306 HINSTANCE hInstance; 307 LPSTR lpszStyle; 308 UINT16 nFontType; 309 UINT16 ___MISSING_ALIGNMENT__; 310 INT nSizeMin; 311 INT nSizeMax; 302 312 } CHOOSEFONTA, *LPCHOOSEFONTA; 303 313 304 314 typedef struct 305 315 { 306 UINT lStructSize; 307 HWND hwndOwner; 308 HDC hDC; 309 LPLOGFONTW lpLogFont; 310 INT iPointSize; 311 DWORD Flags; 312 COLORREF rgbColors; 313 LPARAM lCustData; 314 WNDPROC lpfnHook;315 LPCWSTR lpTemplateName; 316 HINSTANCE hInstance; 317 LPWSTR lpszStyle; 318 UINT16 nFontType; 319 UINT16 ___MISSING_ALIGNMENT__; 320 INT nSizeMin; 321 INT nSizeMax; 316 UINT lStructSize; 317 HWND hwndOwner; 318 HDC hDC; 319 LPLOGFONTW lpLogFont; 320 INT iPointSize; 321 DWORD Flags; 322 COLORREF rgbColors; 323 LPARAM lCustData; 324 LPCFHOOKPROC lpfnHook; 325 LPCWSTR lpTemplateName; 326 HINSTANCE hInstance; 327 LPWSTR lpszStyle; 328 UINT16 nFontType; 329 UINT16 ___MISSING_ALIGNMENT__; 330 INT nSizeMin; 331 INT nSizeMax; 322 332 } CHOOSEFONTW, *LPCHOOSEFONTW; 323 333 324 334 DECL_WINELIB_TYPE_AW(CHOOSEFONT) 325 335 DECL_WINELIB_TYPE_AW(LPCHOOSEFONT) 326 327 #include "poppack.h"328 336 329 337 #define CF_SCREENFONTS 0x00000001 … … 402 410 #define CDM_SETDEFEXT (CDM_FIRST + 0x0006) 403 411 412 typedef UINT16 (CALLBACK *LPPRINTHOOKPROC16) (HWND16, UINT16, WPARAM16, LPARAM); 413 typedef UINT (CALLBACK *LPPRINTHOOKPROC) (HWND, UINT, WPARAM, LPARAM); 414 415 typedef UINT16 (CALLBACK *LPSETUPHOOKPROC16) (HWND16, UINT16, WPARAM16, LPARAM); 416 typedef UINT (CALLBACK *LPSETUPHOOKPROC) (HWND, UINT, WPARAM, LPARAM); 417 404 418 typedef struct 405 419 { … … 417 431 HINSTANCE16 hInstance; 418 432 LPARAM lCustData; 419 WNDPROC16lpfnPrintHook;420 WNDPROC16lpfnSetupHook;433 LPPRINTHOOKPROC16 lpfnPrintHook; 434 LPSETUPHOOKPROC16 lpfnSetupHook; 421 435 SEGPTR lpPrintTemplateName; 422 436 SEGPTR lpSetupTemplateName; … … 424 438 HGLOBAL16 hSetupTemplate; 425 439 } PRINTDLG16, *LPPRINTDLG16; 426 427 typedef UINT (* CALLBACK LPPRINTHOOKPROC) (HWND, UINT, WPARAM, LPARAM);428 typedef UINT (* CALLBACK LPSETUPHOOKPROC) (HWND, UINT, WPARAM, LPARAM);429 440 430 441 typedef struct tagPDA … … 497 508 #define PD_ENABLESETUPTEMPLATEHANDLE 0x00020000 498 509 #define PD_USEDEVMODECOPIES 0x00040000 510 #define PD_USEDEVMODECOPIESANDCOLLATE 0x00040000 499 511 #define PD_DISABLEPRINTTOFILE 0x00080000 500 512 #define PD_HIDEPRINTTOFILE 0x00100000 501 502 #ifndef __WINE_DOCOBJ_H503 typedef enum __MIDL_IPrint_0001504 {505 PRINTFLAG_MAYBOTHERUSER = 1,506 PRINTFLAG_PROMPTUSER = 2,507 PRINTFLAG_USERMAYCHANGEPRINTER = 4,508 PRINTFLAG_RECOMPOSETODEVICE = 8,509 PRINTFLAG_DONTACTUALLYPRINT = 16,510 PRINTFLAG_FORCEPROPERTIES = 32,511 PRINTFLAG_PRINTTOFILE = 64512 } PRINTFLAG;513 #endif514 513 515 514 typedef struct { … … 532 531 #define WM_PSD_YAFULLPAGERECT (WM_USER+6) 533 532 534 typedef UINT ( * CALLBACKLPPAGEPAINTHOOK)( HWND, UINT, WPARAM, LPARAM );535 typedef UINT ( * CALLBACKLPPAGESETUPHOOK)( HWND, UINT, WPARAM, LPARAM );533 typedef UINT (CALLBACK* LPPAGEPAINTHOOK)( HWND, UINT, WPARAM, LPARAM ); 534 typedef UINT (CALLBACK* LPPAGESETUPHOOK)( HWND, UINT, WPARAM, LPARAM ); 536 535 537 536 typedef struct tagPSDA … … 609 608 BOOL WINAPI GetOpenFileNameA(LPOPENFILENAMEA ofn); 610 609 BOOL WINAPI GetOpenFileNameW(LPOPENFILENAMEW ofn); 610 BOOL WINAPI GetFileDialog95A(LPOPENFILENAMEA ofn,UINT iDlgType); 611 BOOL WINAPI GetFileDialog95W(LPOPENFILENAMEW ofn,UINT iDlgType); 611 612 #define GetOpenFileName WINELIB_NAME_AW(GetOpenFileName) 612 613 BOOL16 WINAPI GetSaveFileName16(SEGPTR ofn); … … 633 634 LRESULT WINAPI ColorDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam, LPARAM lParam); 634 635 LRESULT WINAPI FindTextDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam, LPARAM lParam); 635 LRESULT WINAPI FindTextDlgProcA(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam);636 LRESULT WINAPI FindTextDlgProcW(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam);637 #define FindTextDlgProc WINELIB_NAME_AW(FindTextDlgProc)638 636 LRESULT WINAPI ReplaceTextDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam, LPARAM lParam); 639 LRESULT WINAPI ReplaceTextDlgProcA(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam);640 LRESULT WINAPI ReplaceTextDlgProcW(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam);641 #define ReplaceTextProc WINELIB_NAME_AW(ReplaceTextDlgProc)642 637 LRESULT WINAPI PrintDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam, LPARAM lParam); 643 638 LRESULT WINAPI PrintDlgProcA(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam); … … 649 644 #define FormatCharDlgProc WINELIB_NAME_AW(FormatCharDlgProc) 650 645 651 void COMDLG32_SetCommDlgExtendedError(DWORD err); 646 void COMDLG32_SetCommDlgExtendedError(DWORD err); 647 648 649 #include "poppack.h" 652 650 653 651 #ifdef __cplusplus
Note:
See TracChangeset
for help on using the changeset viewer.
