reactos/dll/win32/comdlg32/filedlg31.h

55 lines
2.4 KiB
C
Raw Normal View History

/*
* 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
Sync to Wine-0_9_16: *no changes since 0.9.11 ... Sync to Wine-0_9_11: Byeong-Sik Jeon <wjsqudtlr@gmail.com> - commdlg: Updated Korean translation. Ulrich Czekalla <ulrich@codeweavers.com> - commdlg: Properly set and retrieve colour value from combo box . Mike McCormack <mike@codeweavers.com> - commdlg: Malformed filters are still added to the filter combo box. Sync to Wine-0_9_10: Mike McCormack <mike@codeweavers.com> - comdlg32: Use a property for the color dialog's information. - comdlg32: Remove the property when destroy the dialog box. Sync to Wine-0_9_8: Vitaliy Margolen <wine-patch@kievinfo.com> - commdlg: Add font sizes 6 and 7 to font select dialog. Henning Gerhardt <henning.gerhardt@web.de> - commdlg: Update German resource. Petr Tesarik <hat@tesarici.cz> - commdlg: Czech language resources encoding fix. Dmitry Timoshkov <dmitry@codeweavers.com> - Add support for CDM_HIDECONTROL message in the file open dialog. Andrey Turkin <pancha@mail.nnov.ru> - commdlg: IShellBrowser sets IShellView window's control id to 5002. Fatih Ac <fasici@linux-sevenler.org> - commdlg: Turkish translation. Sync to Wine-0_9_7: Michael Kaufmann <hallo@michael-kaufmann.ch> - commdlg: File open dialog: Use the specified instance handle for custom dialog templates. Sync to Wine-0_9_6: YunSong Hwang <hys545@dreamwiz.com> - commdlg: Updated Korean translation. Ulrich Czekalla <ulrich@codeweavers.com> - commdlg: If provided use and update hDevMode in the PAGESETUPDLG struct. Update the dmDefaultSourcea return value inside hDevMode. Stefan Br¹ns <stefan.bruens@rwth-aachen.de> - commdlg: Makes return value of FILEDLG95_SendFileOK dependent of return value, not of DWL_MSGRESULT. Sync to Wine-0_9_5: Dan Kegel <dank@kegel.com> - commdlg: Let the color picker respond properly to keystrokes. svn path=/trunk/; revision=22876
2006-07-05 22:48:31 +00:00
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef _WINE_DLL_FILEDLG31_H
#define _WINE_DLL_FILEDLG31_H
#define FD31_OFN_PROP "FILEDLG_OFN"
typedef struct tagFD31_DATA
{
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 */
LPOPENFILENAMEW ofnW; /* pointer either to the original structure or
a W copy for A/16 API */
LPOPENFILENAMEA ofnA; /* original structure if 32bits ansi dialog */
} FD31_DATA, *PFD31_DATA;
extern BOOL FD32_GetTemplate(PFD31_DATA lfs);
extern BOOL FD31_Init(void);
extern PFD31_DATA FD31_AllocPrivate(LPARAM lParam, UINT dlgType, BOOL IsUnicode);
extern void FD31_DestroyPrivate(PFD31_DATA lfs);
extern void FD31_MapOfnStructA(const OPENFILENAMEA *ofnA, LPOPENFILENAMEW ofnW, BOOL open);
extern void FD31_FreeOfnW(OPENFILENAMEW *ofnW);
extern BOOL FD31_CallWindowProc(const FD31_DATA *lfs, UINT wMsg, WPARAM wParam,
LPARAM lParam);
extern LONG FD31_WMInitDialog(HWND hWnd, WPARAM wParam, LPARAM lParam);
extern LONG FD31_WMDrawItem(HWND hWnd, WPARAM wParam, LPARAM lParam,
int savedlg, const DRAWITEMSTRUCT *lpdis);
extern LRESULT FD31_WMCommand(HWND hWnd, LPARAM lParam, UINT notification,
UINT control, const FD31_DATA *lfs);
extern int FD31_GetFldrHeight(void);
#endif /* _WINE_DLL_FILEDLG31_H */