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