If using the default values, also set dwType to REG_SZ as our default
[wine] / dlls / commdlg / fontdlg.h
1 /*
2  * COMMDLG - Font Dialog
3  *
4  * Copyright 1994 Martin Ayotte
5  * Copyright 1996 Albrecht Kleine
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  *
21  * DO NOT EXPORT TO APPLICATIONS -
22  * This file only defines the internal functions that are shared to 
23  * implement the Win16 and Win32 font dialog support. 
24  *
25  */
26
27 #ifndef _WINE_FONTDLG_H
28 #define _WINE_FONTDLG_H
29
30 #include <stdarg.h>
31
32 #include "windef.h"
33 #include "winbase.h"
34 #include "wingdi.h"
35 #include "winuser.h"
36 #include "commdlg.h"
37
38 typedef struct
39 {
40   HWND hWnd1;
41   HWND hWnd2;
42   LPCHOOSEFONTA lpcf32a;
43   int  added;
44 } CFn_ENUMSTRUCT, *LPCFn_ENUMSTRUCT;
45
46 INT AddFontFamily(const LOGFONTA *lplf, UINT nFontType, LPCHOOSEFONTA lpcf, 
47                                         HWND hwnd, LPCFn_ENUMSTRUCT e);
48 INT AddFontStyle(const LOGFONTA *lplf, UINT nFontType, LPCHOOSEFONTA lpcf, 
49                                         HWND hcmb2, HWND hcmb3, HWND hDlg);
50 void _dump_cf_flags(DWORD cflags);
51
52 LRESULT CFn_WMInitDialog(HWND hDlg, WPARAM wParam, LPARAM lParam,
53                          LPCHOOSEFONTA lpcf);
54 LRESULT CFn_WMMeasureItem(HWND hDlg, WPARAM wParam, LPARAM lParam);
55 LRESULT CFn_WMDrawItem(HWND hDlg, WPARAM wParam, LPARAM lParam);
56 LRESULT CFn_WMCommand(HWND hDlg, WPARAM wParam, LPARAM lParam,
57                       LPCHOOSEFONTA lpcf);
58 LRESULT CFn_WMDestroy(HWND hwnd, WPARAM wParam, LPARAM lParam);
59
60 #endif /* _WINE_FONTDLG_H */