Don't free the stack selector, it's freed in ExitThread anyway (thanks
[wine.git] / programs / notepad / main.h
bloba3da15d396d532d77b35f082681964c235f6dc21
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 MAX_PATHNAME_LEN 1024
26 #define MAX_LANGUAGE_NUMBER (NP_LAST_LANGUAGE - NP_FIRST_LANGUAGE)
28 #define HELPFILE "notepad.hlp"
29 #define LOGPREFIX ".LOG"
31 /* hide the following from winerc */
32 #ifndef RC_INVOKED
34 #define WINE_RELEASE_INFO "Wine (www.winehq.com)"
36 #include "commdlg.h"
38 /***** Compatibility *****/
40 #ifndef OIC_WINLOGO
41 #define OIC_WINLOGO 32517
42 #endif
43 #define DEFAULTICON OIC_WINLOGO
45 typedef struct
47 HANDLE hInstance;
48 HWND hMainWnd;
49 HWND hFindReplaceDlg;
50 HICON hMainIcon;
51 HICON hDefaultIcon;
52 HMENU hMainMenu;
53 HMENU hFileMenu;
54 HMENU hEditMenu;
55 HMENU hSearchMenu;
56 HMENU hLanguageMenu;
57 HMENU hHelpMenu;
58 LPCSTR lpszIniFile;
59 LPCSTR lpszIcoFile;
60 UINT wStringTableOffset;
61 BOOL bWrapLongLines;
62 CHAR szFindText[MAX_PATHNAME_LEN];
63 CHAR szReplaceText[MAX_PATHNAME_LEN];
64 CHAR szFileName[MAX_PATHNAME_LEN];
65 CHAR szMarginTop[MAX_PATHNAME_LEN];
66 CHAR szMarginBottom[MAX_PATHNAME_LEN];
67 CHAR szMarginLeft[MAX_PATHNAME_LEN];
68 CHAR szMarginRight[MAX_PATHNAME_LEN];
69 CHAR szHeader[MAX_PATHNAME_LEN];
70 CHAR szFooter[MAX_PATHNAME_LEN];
72 FINDREPLACE find;
73 WORD nCommdlgFindReplaceMsg;
74 CHAR Buffer[12000];
75 } NOTEPAD_GLOBALS;
77 extern NOTEPAD_GLOBALS Globals;
79 /* function prototypes */
81 void TrashBuffer(void);
82 void LoadBufferFromFile(LPCSTR lpFileName);
84 /* class names */
86 /* Resource names */
87 extern CHAR STRING_MENU_Xx[];
88 extern CHAR STRING_PAGESETUP_Xx[];
90 #else /* RC_INVOKED */
92 #endif