1999-04-25 18:31:35 +00:00
|
|
|
/*
|
|
|
|
* Common Dialog Boxes interface (32 bit)
|
|
|
|
*
|
|
|
|
* Copyright 1998 Bertho A. Stultiens
|
2002-03-09 23:29:33 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
1999-04-25 18:31:35 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _WINE_DLL_CDLG_H
|
|
|
|
#define _WINE_DLL_CDLG_H
|
|
|
|
|
2003-01-03 19:12:55 +00:00
|
|
|
#define COM_NO_WINDOWS_H
|
1999-11-12 01:02:27 +00:00
|
|
|
#include "dlgs.h"
|
2000-09-26 22:20:14 +00:00
|
|
|
#include "wine/windef16.h"
|
2002-10-17 16:43:42 +00:00
|
|
|
#include "wownt32.h"
|
2002-09-06 20:40:42 +00:00
|
|
|
|
1999-04-25 18:31:35 +00:00
|
|
|
/* Common dialogs implementation globals */
|
|
|
|
#define COMDLG32_Atom ((ATOM)0xa000) /* MS uses this one to identify props */
|
|
|
|
|
|
|
|
extern HINSTANCE COMDLG32_hInstance;
|
|
|
|
|
|
|
|
void COMDLG32_SetCommDlgExtendedError(DWORD err);
|
|
|
|
LPVOID COMDLG32_AllocMem(int size);
|
|
|
|
|
2002-11-21 23:55:10 +00:00
|
|
|
/* handle<-handle16 conversion */
|
|
|
|
#define HINSTANCE_32(h16) ((HINSTANCE)(ULONG_PTR)(h16))
|
1999-04-25 18:31:35 +00:00
|
|
|
|
|
|
|
/* Find/Replace local definitions */
|
|
|
|
|
|
|
|
#define FR_WINE_UNICODE 0x80000000
|
|
|
|
#define FR_WINE_REPLACE 0x40000000
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
FINDREPLACEA fr; /* Internally used structure */
|
|
|
|
union {
|
|
|
|
FINDREPLACEA *fra; /* Reference to the user supplied structure */
|
|
|
|
FINDREPLACEW *frw;
|
|
|
|
} user_fr;
|
|
|
|
} COMDLG32_FR_Data;
|
|
|
|
|
1999-07-30 18:07:37 +00:00
|
|
|
#define PD32_PRINT_TITLE 7000
|
1999-09-03 12:41:23 +00:00
|
|
|
|
|
|
|
#define PD32_VALUE_UREADABLE 1104
|
|
|
|
#define PD32_INVALID_PAGE_RANGE 1105
|
|
|
|
#define PD32_FROM_NOT_ABOVE_TO 1106
|
|
|
|
#define PD32_MARGINS_OVERLAP 1107
|
|
|
|
#define PD32_NR_OF_COPIES_EMPTY 1108
|
|
|
|
#define PD32_TOO_LARGE_COPIES 1109
|
|
|
|
#define PD32_PRINT_ERROR 1110
|
|
|
|
#define PD32_NO_DEFAULT_PRINTER 1111
|
|
|
|
#define PD32_CANT_FIND_PRINTER 1112
|
|
|
|
#define PD32_OUT_OF_MEMORY 1113
|
|
|
|
#define PD32_GENERIC_ERROR 1114
|
|
|
|
#define PD32_DRIVER_UNKNOWN 1115
|
|
|
|
|
|
|
|
#define PD32_PRINTER_STATUS_READY 1536
|
|
|
|
#define PD32_PRINTER_STATUS_PAUSED 1537
|
2002-05-31 23:06:46 +00:00
|
|
|
#define PD32_PRINTER_STATUS_ERROR 1538
|
1999-09-03 12:41:23 +00:00
|
|
|
#define PD32_PRINTER_STATUS_PENDING_DELETION 1539
|
|
|
|
#define PD32_PRINTER_STATUS_PAPER_JAM 1540
|
|
|
|
#define PD32_PRINTER_STATUS_PAPER_OUT 1541
|
|
|
|
#define PD32_PRINTER_STATUS_MANUAL_FEED 1542
|
|
|
|
#define PD32_PRINTER_STATUS_PAPER_PROBLEM 1543
|
|
|
|
#define PD32_PRINTER_STATUS_OFFLINE 1544
|
|
|
|
#define PD32_PRINTER_STATUS_IO_ACTIVE 1545
|
|
|
|
#define PD32_PRINTER_STATUS_BUSY 1546
|
|
|
|
#define PD32_PRINTER_STATUS_PRINTING 1547
|
|
|
|
#define PD32_PRINTER_STATUS_OUTPUT_BIN_FULL 1548
|
|
|
|
#define PD32_PRINTER_STATUS_NOT_AVAILABLE 1549
|
|
|
|
#define PD32_PRINTER_STATUS_WAITING 1550
|
|
|
|
#define PD32_PRINTER_STATUS_PROCESSING 1551
|
|
|
|
#define PD32_PRINTER_STATUS_INITIALIZING 1552
|
|
|
|
#define PD32_PRINTER_STATUS_WARMING_UP 1553
|
|
|
|
#define PD32_PRINTER_STATUS_TONER_LOW 1554
|
|
|
|
#define PD32_PRINTER_STATUS_NO_TONER 1555
|
|
|
|
#define PD32_PRINTER_STATUS_PAGE_PUNT 1556
|
|
|
|
#define PD32_PRINTER_STATUS_USER_INTERVENTION 1557
|
|
|
|
#define PD32_PRINTER_STATUS_OUT_OF_MEMORY 1558
|
|
|
|
#define PD32_PRINTER_STATUS_DOOR_OPEN 1559
|
|
|
|
#define PD32_PRINTER_STATUS_SERVER_UNKNOWN 1560
|
|
|
|
#define PD32_PRINTER_STATUS_POWER_SAVE 1561
|
|
|
|
|
|
|
|
#define PD32_DEFAULT_PRINTER 1582
|
|
|
|
#define PD32_NR_OF_DOCUMENTS_IN_QUEUE 1583
|
|
|
|
#define PD32_PRINT_ALL_X_PAGES 1584
|
|
|
|
#define PD32_MARGINS_IN_INCHES 1585
|
|
|
|
#define PD32_MARGINS_IN_MILIMETERS 1586
|
|
|
|
#define PD32_MILIMETERS 1587
|
1999-07-30 18:07:37 +00:00
|
|
|
|
2003-01-28 00:18:31 +00:00
|
|
|
/* Charset names string IDs */
|
|
|
|
|
|
|
|
#define IDS_CHARSET_ANSI 200
|
|
|
|
#define IDS_CHARSET_SYMBOL 201
|
2003-02-15 00:02:24 +00:00
|
|
|
#define IDS_CHARSET_JIS 202
|
2003-01-28 00:18:31 +00:00
|
|
|
#define IDS_CHARSET_HANGUL 203
|
2003-02-15 00:02:24 +00:00
|
|
|
#define IDS_CHARSET_GB2312 204
|
|
|
|
#define IDS_CHARSET_BIG5 205
|
|
|
|
#define IDS_CHARSET_GREEK 206
|
|
|
|
#define IDS_CHARSET_TURKISH 207
|
|
|
|
#define IDS_CHARSET_HEBREW 208
|
|
|
|
#define IDS_CHARSET_ARABIC 209
|
|
|
|
#define IDS_CHARSET_BALTIC 210
|
|
|
|
#define IDS_CHARSET_VIETNAMESE 211
|
|
|
|
#define IDS_CHARSET_RUSSIAN 212
|
|
|
|
#define IDS_CHARSET_EE 213
|
|
|
|
#define IDS_CHARSET_THAI 214
|
|
|
|
#define IDS_CHARSET_JOHAB 215
|
|
|
|
#define IDS_CHARSET_MAC 216
|
|
|
|
#define IDS_CHARSET_OEM 217
|
|
|
|
#define IDS_CHARSET_VISCII 218
|
|
|
|
#define IDS_CHARSET_TCVN 219
|
|
|
|
#define IDS_CHARSET_KOI8 220
|
|
|
|
#define IDS_CHARSET_ISO3 221
|
|
|
|
#define IDS_CHARSET_ISO4 222
|
|
|
|
#define IDS_CHARSET_ISO10 223
|
|
|
|
#define IDS_CHARSET_CELTIC 224
|
2003-01-28 00:18:31 +00:00
|
|
|
|
|
|
|
/* Color names string IDs */
|
|
|
|
|
|
|
|
#define IDS_COLOR_BLACK 1040
|
|
|
|
#define IDS_COLOR_MAROON 1041
|
|
|
|
#define IDS_COLOR_GREEN 1042
|
|
|
|
#define IDS_COLOR_OLIVE 1043
|
|
|
|
#define IDS_COLOR_NAVY 1044
|
|
|
|
#define IDS_COLOR_PURPLE 1045
|
|
|
|
#define IDS_COLOR_TEAL 1046
|
|
|
|
#define IDS_COLOR_GRAY 1047
|
|
|
|
#define IDS_COLOR_SILVER 1048
|
|
|
|
#define IDS_COLOR_RED 1049
|
|
|
|
#define IDS_COLOR_LIME 1050
|
|
|
|
#define IDS_COLOR_YELLOW 1051
|
|
|
|
#define IDS_COLOR_BLUE 1052
|
|
|
|
#define IDS_COLOR_FUCHSIA 1053
|
|
|
|
#define IDS_COLOR_AQUA 1054
|
|
|
|
#define IDS_COLOR_WHITE 1055
|
|
|
|
|
2003-09-05 23:08:26 +00:00
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "wingdi.h"
|
|
|
|
#include "winuser.h"
|
|
|
|
#include "winnls.h"
|
1999-07-27 16:20:36 +00:00
|
|
|
#include "commctrl.h"
|
2000-09-26 00:00:55 +00:00
|
|
|
#include "shlobj.h"
|
1999-08-21 14:47:28 +00:00
|
|
|
#include "shellapi.h"
|
|
|
|
|
|
|
|
/* ITEMIDLIST */
|
|
|
|
|
2002-02-02 18:42:11 +00:00
|
|
|
extern LPITEMIDLIST (WINAPI *COMDLG32_PIDL_ILClone) (LPCITEMIDLIST);
|
|
|
|
extern LPITEMIDLIST (WINAPI *COMDLG32_PIDL_ILCombine)(LPCITEMIDLIST,LPCITEMIDLIST);
|
|
|
|
extern LPITEMIDLIST (WINAPI *COMDLG32_PIDL_ILGetNext)(LPITEMIDLIST);
|
|
|
|
extern BOOL (WINAPI *COMDLG32_PIDL_ILRemoveLastID)(LPCITEMIDLIST);
|
|
|
|
extern BOOL (WINAPI *COMDLG32_PIDL_ILIsEqual)(LPCITEMIDLIST, LPCITEMIDLIST);
|
1999-08-21 14:47:28 +00:00
|
|
|
|
|
|
|
/* SHELL */
|
2002-02-02 18:42:11 +00:00
|
|
|
extern LPVOID (WINAPI *COMDLG32_SHAlloc)(DWORD);
|
|
|
|
extern DWORD (WINAPI *COMDLG32_SHFree)(LPVOID);
|
|
|
|
extern BOOL (WINAPI *COMDLG32_SHGetFolderPathA)(HWND,int,HANDLE,DWORD,LPSTR);
|
2002-08-16 23:26:22 +00:00
|
|
|
extern BOOL (WINAPI *COMDLG32_SHGetFolderPathW)(HWND,int,HANDLE,DWORD,LPWSTR);
|
2000-06-16 21:51:33 +00:00
|
|
|
|
2000-05-26 22:26:06 +00:00
|
|
|
extern BOOL WINAPI GetFileDialog95A(LPOPENFILENAMEA ofn,UINT iDlgType);
|
|
|
|
extern BOOL WINAPI GetFileDialog95W(LPOPENFILENAMEW ofn,UINT iDlgType);
|
|
|
|
|
|
|
|
/* 16 bit api */
|
|
|
|
|
|
|
|
#include "pshpack1.h"
|
|
|
|
|
2002-02-02 18:42:11 +00:00
|
|
|
typedef UINT16 (CALLBACK *LPOFNHOOKPROC16)(HWND16,UINT16,WPARAM16,LPARAM);
|
2000-05-26 22:26:06 +00:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
DWORD lStructSize;
|
|
|
|
HWND16 hwndOwner;
|
|
|
|
HINSTANCE16 hInstance;
|
|
|
|
SEGPTR lpstrFilter;
|
|
|
|
SEGPTR lpstrCustomFilter;
|
|
|
|
DWORD nMaxCustFilter;
|
|
|
|
DWORD nFilterIndex;
|
|
|
|
SEGPTR lpstrFile;
|
|
|
|
DWORD nMaxFile;
|
|
|
|
SEGPTR lpstrFileTitle;
|
|
|
|
DWORD nMaxFileTitle;
|
|
|
|
SEGPTR lpstrInitialDir;
|
|
|
|
SEGPTR lpstrTitle;
|
|
|
|
DWORD Flags;
|
|
|
|
UINT16 nFileOffset;
|
|
|
|
UINT16 nFileExtension;
|
|
|
|
SEGPTR lpstrDefExt;
|
|
|
|
LPARAM lCustData;
|
|
|
|
LPOFNHOOKPROC16 lpfnHook;
|
|
|
|
SEGPTR lpTemplateName;
|
|
|
|
} OPENFILENAME16,*LPOPENFILENAME16;
|
|
|
|
|
2002-02-02 18:42:11 +00:00
|
|
|
typedef UINT16 (CALLBACK *LPCCHOOKPROC16) (HWND16, UINT16, WPARAM16, LPARAM);
|
2000-05-26 22:26:06 +00:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
DWORD lStructSize;
|
|
|
|
HWND16 hwndOwner;
|
|
|
|
HWND16 hInstance;
|
|
|
|
COLORREF rgbResult;
|
2000-12-13 20:20:09 +00:00
|
|
|
SEGPTR lpCustColors;
|
2000-05-26 22:26:06 +00:00
|
|
|
DWORD Flags;
|
|
|
|
LPARAM lCustData;
|
|
|
|
LPCCHOOKPROC16 lpfnHook;
|
|
|
|
SEGPTR lpTemplateName;
|
|
|
|
} CHOOSECOLOR16;
|
|
|
|
typedef CHOOSECOLOR16 *LPCHOOSECOLOR16;
|
|
|
|
|
2002-02-02 18:42:11 +00:00
|
|
|
typedef UINT16 (CALLBACK *LPFRHOOKPROC16)(HWND16,UINT16,WPARAM16,LPARAM);
|
2000-05-26 22:26:06 +00:00
|
|
|
typedef struct {
|
|
|
|
DWORD lStructSize; /* size of this struct 0x20 */
|
|
|
|
HWND16 hwndOwner; /* handle to owner's window */
|
|
|
|
HINSTANCE16 hInstance; /* instance handle of.EXE that */
|
|
|
|
/* contains cust. dlg. template */
|
|
|
|
DWORD Flags; /* one or more of the FR_?? */
|
|
|
|
SEGPTR lpstrFindWhat; /* ptr. to search string */
|
|
|
|
SEGPTR lpstrReplaceWith; /* ptr. to replace string */
|
|
|
|
UINT16 wFindWhatLen; /* size of find buffer */
|
|
|
|
UINT16 wReplaceWithLen; /* size of replace buffer */
|
|
|
|
LPARAM lCustData; /* data passed to hook fn. */
|
|
|
|
LPFRHOOKPROC16 lpfnHook;
|
|
|
|
SEGPTR lpTemplateName; /* custom template name */
|
|
|
|
} FINDREPLACE16, *LPFINDREPLACE16;
|
|
|
|
|
2002-02-02 18:42:11 +00:00
|
|
|
typedef UINT16 (CALLBACK *LPCFHOOKPROC16)(HWND16,UINT16,WPARAM16,LPARAM);
|
2002-05-31 23:06:46 +00:00
|
|
|
typedef struct
|
2000-05-26 22:26:06 +00:00
|
|
|
{
|
|
|
|
DWORD lStructSize;
|
|
|
|
HWND16 hwndOwner; /* caller's window handle */
|
|
|
|
HDC16 hDC; /* printer DC/IC or NULL */
|
|
|
|
SEGPTR lpLogFont; /* ptr. to a LOGFONT struct */
|
|
|
|
short iPointSize; /* 10 * size in points of selected font */
|
|
|
|
DWORD Flags; /* enum. type flags */
|
|
|
|
COLORREF rgbColors; /* returned text color */
|
|
|
|
LPARAM lCustData; /* data passed to hook fn. */
|
|
|
|
LPCFHOOKPROC16 lpfnHook;
|
|
|
|
SEGPTR lpTemplateName; /* custom template name */
|
|
|
|
HINSTANCE16 hInstance; /* instance handle of.EXE that */
|
|
|
|
/* contains cust. dlg. template */
|
|
|
|
SEGPTR lpszStyle; /* return the style field here */
|
|
|
|
/* must be LF_FACESIZE or bigger */
|
|
|
|
UINT16 nFontType; /* same value reported to the */
|
|
|
|
/* EnumFonts callback with the */
|
|
|
|
/* extra FONTTYPE_ bits added */
|
|
|
|
short nSizeMin; /* minimum pt size allowed & */
|
|
|
|
short nSizeMax; /* max pt size allowed if */
|
|
|
|
/* CF_LIMITSIZE is used */
|
|
|
|
} CHOOSEFONT16, *LPCHOOSEFONT16;
|
|
|
|
|
|
|
|
|
2002-02-02 18:42:11 +00:00
|
|
|
typedef UINT16 (CALLBACK *LPPRINTHOOKPROC16) (HWND16, UINT16, WPARAM16, LPARAM);
|
|
|
|
typedef UINT16 (CALLBACK *LPSETUPHOOKPROC16) (HWND16, UINT16, WPARAM16, LPARAM);
|
2000-05-26 22:26:06 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
DWORD lStructSize;
|
|
|
|
HWND16 hwndOwner;
|
|
|
|
HGLOBAL16 hDevMode;
|
|
|
|
HGLOBAL16 hDevNames;
|
|
|
|
HDC16 hDC;
|
|
|
|
DWORD Flags;
|
|
|
|
WORD nFromPage;
|
|
|
|
WORD nToPage;
|
|
|
|
WORD nMinPage;
|
|
|
|
WORD nMaxPage;
|
|
|
|
WORD nCopies;
|
|
|
|
HINSTANCE16 hInstance;
|
|
|
|
LPARAM lCustData;
|
|
|
|
LPPRINTHOOKPROC16 lpfnPrintHook;
|
|
|
|
LPSETUPHOOKPROC16 lpfnSetupHook;
|
|
|
|
SEGPTR lpPrintTemplateName;
|
|
|
|
SEGPTR lpSetupTemplateName;
|
|
|
|
HGLOBAL16 hPrintTemplate;
|
|
|
|
HGLOBAL16 hSetupTemplate;
|
|
|
|
} PRINTDLG16, *LPPRINTDLG16;
|
|
|
|
|
|
|
|
BOOL16 WINAPI ChooseColor16(LPCHOOSECOLOR16 lpChCol);
|
|
|
|
HWND16 WINAPI FindText16( SEGPTR find);
|
|
|
|
INT16 WINAPI GetFileTitle16(LPCSTR lpFile, LPSTR lpTitle, UINT16 cbBuf);
|
|
|
|
BOOL16 WINAPI GetOpenFileName16(SEGPTR ofn);
|
|
|
|
BOOL16 WINAPI GetSaveFileName16(SEGPTR ofn);
|
|
|
|
BOOL16 WINAPI PrintDlg16( LPPRINTDLG16 print);
|
|
|
|
HWND16 WINAPI ReplaceText16( SEGPTR find);
|
|
|
|
BOOL16 WINAPI ChooseFont16(LPCHOOSEFONT16);
|
|
|
|
|
|
|
|
#include "poppack.h"
|
|
|
|
|
|
|
|
#endif /* _WINE_DLL_CDLG_H */
|