Fixed some issues found by winapi_check.
[wine] / programs / notepad / main.h
1 /*
2  *  Notepad (notepad.h)
3  *
4  *  Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
5  *  Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
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
22 #include "notepad_res.h"
23
24 #define MAX_STRING_LEN      255
25 #define HELPFILE  "notepad.hlp"
26
27 /* hide the following from winerc */
28 #ifndef RC_INVOKED
29
30 #define WINE_RELEASE_INFO "Wine (www.winehq.com)"
31
32 #include "commdlg.h"
33
34 VOID SetFileName(LPSTR szFileName);
35
36 /***** Compatibility *****/
37
38 #ifndef OIC_WINLOGO
39 #define OIC_WINLOGO 32517
40 #endif
41 #define DEFAULTICON OIC_WINLOGO
42
43 typedef struct
44 {
45   HANDLE  hInstance;
46   HWND    hMainWnd;
47   HWND    hFindReplaceDlg;
48   HWND    hEdit;
49   HICON   hMainIcon;
50   HICON   hDefaultIcon;
51   LPCSTR  lpszIcoFile;
52   BOOL    bWrapLongLines;
53   CHAR    szFindText[MAX_PATH];
54   CHAR    szFileName[MAX_PATH];
55   CHAR    szFileTitle[MAX_PATH];
56   CHAR    szFilter[2 * MAX_STRING_LEN + 100];
57   CHAR    szMarginTop[MAX_PATH];
58   CHAR    szMarginBottom[MAX_PATH];
59   CHAR    szMarginLeft[MAX_PATH];
60   CHAR    szMarginRight[MAX_PATH];
61   CHAR    szHeader[MAX_PATH];
62   CHAR    szFooter[MAX_PATH];
63
64   FINDREPLACE find;
65 } NOTEPAD_GLOBALS;
66
67 extern NOTEPAD_GLOBALS Globals;
68
69 #else  /* RC_INVOKED */
70
71 #endif