2004-07-14 02:39:10 +02:00
|
|
|
/*
|
|
|
|
* Win3.1 style File Dialog interface (32 bit)
|
|
|
|
*
|
|
|
|
* 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
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2004-07-14 02:39:10 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _WINE_DLL_FILEDLG31_H
|
|
|
|
#define _WINE_DLL_FILEDLG31_H
|
|
|
|
|
|
|
|
#define FD31_OFN_PROP "FILEDLG_OFN"
|
|
|
|
|
2009-12-23 17:47:55 +01:00
|
|
|
typedef struct tagFD31_DATA
|
2004-07-14 02:39:10 +02:00
|
|
|
{
|
|
|
|
HWND hwnd; /* file dialog window handle */
|
|
|
|
BOOL hook; /* TRUE if the dialog is hooked */
|
|
|
|
UINT lbselchstring; /* registered message id */
|
|
|
|
UINT fileokstring; /* registered message id */
|
|
|
|
LPARAM lParam; /* save original lparam */
|
|
|
|
LPCVOID template; /* template for 32 bits resource */
|
|
|
|
BOOL open; /* TRUE if open dialog, FALSE if save dialog */
|
2005-02-03 20:39:26 +01:00
|
|
|
LPOPENFILENAMEW ofnW; /* pointer either to the original structure or
|
|
|
|
a W copy for A/16 API */
|
2009-12-23 17:36:20 +01:00
|
|
|
LPOPENFILENAMEA ofnA; /* original structure if 32bits ansi dialog */
|
2009-12-23 17:47:55 +01:00
|
|
|
} FD31_DATA, *PFD31_DATA;
|
|
|
|
|
|
|
|
extern BOOL FD32_GetTemplate(PFD31_DATA lfs);
|
2004-07-14 02:39:10 +02:00
|
|
|
|
|
|
|
extern BOOL FD31_Init(void);
|
2009-12-23 17:47:55 +01:00
|
|
|
extern PFD31_DATA FD31_AllocPrivate(LPARAM lParam, UINT dlgType, BOOL IsUnicode);
|
2004-07-14 02:39:10 +02:00
|
|
|
extern void FD31_DestroyPrivate(PFD31_DATA lfs);
|
2007-03-06 21:39:56 +01:00
|
|
|
extern void FD31_MapOfnStructA(const OPENFILENAMEA *ofnA, LPOPENFILENAMEW ofnW, BOOL open);
|
2007-04-06 12:09:35 +02:00
|
|
|
extern void FD31_FreeOfnW(OPENFILENAMEW *ofnW);
|
2007-04-04 23:22:44 +02:00
|
|
|
extern BOOL FD31_CallWindowProc(const FD31_DATA *lfs, UINT wMsg, WPARAM wParam,
|
2004-07-14 02:39:10 +02:00
|
|
|
LPARAM lParam);
|
|
|
|
extern LONG FD31_WMInitDialog(HWND hWnd, WPARAM wParam, LPARAM lParam);
|
|
|
|
extern LONG FD31_WMDrawItem(HWND hWnd, WPARAM wParam, LPARAM lParam,
|
2007-04-04 23:22:44 +02:00
|
|
|
int savedlg, const DRAWITEMSTRUCT *lpdis);
|
2004-07-14 02:39:10 +02:00
|
|
|
extern LRESULT FD31_WMCommand(HWND hWnd, LPARAM lParam, UINT notification,
|
2007-04-04 23:22:44 +02:00
|
|
|
UINT control, const FD31_DATA *lfs);
|
2004-07-14 02:39:10 +02:00
|
|
|
extern int FD31_GetFldrHeight(void);
|
|
|
|
|
|
|
|
#endif /* _WINE_DLL_FILEDLG31_H */
|