Release 980104
[wine/multimedia.git] / programs / notepad / main.h
blob3c701b5f176474fe6dd626d4d130daf51843126c
1 /*
2 * Notepad (notepad.h)
4 * Copyright 1997 Marcel Baur <mbaur@g26.ethz.ch>
5 */
7 #define MAX_STRING_LEN 255
8 #define MAX_PATHNAME_LEN 1024
9 #define MAX_LANGUAGE_NUMBER (NP_LAST_LANGUAGE - NP_FIRST_LANGUAGE)
11 #define HELPFILE "notepad.hlp"
12 #define DEFAULTICON OIC_WINEICON
14 /* hide the following from winerc */
15 #ifndef RC_INVOKED
17 typedef struct
19 HANDLE hInstance;
20 HWND hMainWnd;
21 HICON hMainIcon;
22 HICON hDefaultIcon;
23 HMENU hMainMenu;
24 HMENU hFileMenu;
25 HMENU hEditMenu;
26 HMENU hSearchMenu;
27 HMENU hLanguageMenu;
28 HMENU hHelpMenu;
29 LPCSTR lpszIniFile;
30 LPCSTR lpszIcoFile;
31 LPCSTR lpszLanguage;
32 UINT wStringTableOffset;
33 } NOTEPAD_GLOBALS;
35 extern NOTEPAD_GLOBALS Globals;
37 /* function prototypes */
39 /* class names */
41 /* resource names */
42 // extern CHAR[] STRING_MENU_Xx;
44 #define STRINGID(id) (0x##id + Globals.wStringTableOffset)
46 #else /* RC_INVOKED */
48 #define STRINGID(id) id
50 #endif
52 /* string table index */
53 #define IDS_LANGUAGE_ID STRINGID(00)
55 /* main menu */
57 #define NP_FILE_NEW 100
58 #define NP_FILE_OPEN 101
59 #define NP_FILE_SAVE 102
60 #define NP_FILE_SAVEAS 103
61 #define NP_FILE_PRINT 104
62 #define NP_FILE_PAGESETUP 105
63 #define NP_FILE_PRINTSETUP 106
64 #define NP_FILE_EXIT 107
66 #define NP_EDIT_UNDO 200
67 #define NP_EDIT_CUT 201
68 #define NP_EDIT_COPY 202
69 #define NP_EDIT_PASTE 203
70 #define NP_EDIT_DELETE 204
71 #define NP_EDIT_SELECTALL 205
72 #define NP_EDIT_TIMEDATE 206
73 #define NP_EDIT_WRAP 207
75 #define NP_SEARCH_SEARCH 300
76 #define NP_SEARCH_NEXT 301
78 #define NP_FIRST_LANGUAGE 400
79 #define NP_LAST_LANGUAGE 499
81 #define NP_HELP_CONTENTS 500
82 #define NP_HELP_SEARCH 501
83 #define NP_HELP_ON_HELP 502
84 #define NP_HELP_LICENSE 503
85 #define NP_HELP_NO_WARRANTY 504
86 #define NP_HELP_ABOUT_WINE 505
89 /* Dialog `Page Setup' */
91 #define NP_PAGESETUP_LEFT 1000
92 #define NP_PAGESETUP_RIGHT 1001
93 #define NP_PAGESETUP_TOP 1002
94 #define NP_PAGESETUP_BOTTOM 1003
97 /* Local Variables: */
98 /* c-file-style: "GNU" */
99 /* End: */