Made notepad uses NLS properly.
[wine] / programs / clock / main.h
1 /*
2  * Clock (main.h)
3  *
4  * Copyright 1998 Marcel Baur <mbaur@g26.ethz.ch>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #define MAX_STRING_LEN      255
22 #define MAX_PATHNAME_LEN    1024
23 #define MAX_LANGUAGE_NUMBER (CL_LAST_LANGUAGE - CL_FIRST_LANGUAGE)
24
25 #define HELPFILE    "clock.hlp"
26 #define DEFAULTICON OIC_WINLOGO
27
28 /* hide the following from winerc */
29 #ifndef RC_INVOKED
30
31 typedef struct
32 {
33   HANDLE  hInstance;
34   HWND    hMainWnd;
35   HICON   hMainIcon;
36   HICON   hDefaultIcon;
37   HMENU   hMainMenu;
38   HMENU   hPropertiesMenu;
39   HMENU   hLanguageMenu;
40   HMENU   hInfoMenu;
41   HMENU   hSystemMenu;
42   HMENU   hPopupMenu1;
43   LPCSTR  lpszIniFile;
44   LPCSTR  lpszIcoFile;
45   UINT    wStringTableOffset;
46
47   BOOL    bAnalog;
48   BOOL    bAlwaysOnTop;
49   BOOL    bWithoutTitle;
50   BOOL    bSeconds;
51   BOOL    bDate;  
52
53   int     MaxX;
54   int     MaxY;
55 } CLOCK_GLOBALS;
56
57 extern CLOCK_GLOBALS Globals;
58
59 /* function prototypes */
60 VOID MAIN_FileChooseFont(VOID);
61
62 /* class names */
63
64 /* Resource names */
65 extern CHAR STRING_MENU_Xx[];
66
67    #define STRINGID(id) (0x##id + Globals.wStringTableOffset)
68    
69 #else  /* RC_INVOKED */
70
71    #define STRINGID(id) id
72    
73 #endif
74
75 /* string table index */
76 #define IDS_LANGUAGE_ID                STRINGID(00)
77 #define IDS_LANGUAGE_MENU_ITEM         STRINGID(01)
78 #define IDS_CLOCK                      STRINGID(02)
79 #define IDS_MENU_ON_TOP                STRINGID(03)
80
81 /* main menu */
82
83 #define CL_ON_TOP                99
84
85 #define CL_ANALOG                100
86 #define CL_DIGITAL               101
87 #define CL_FONT                  102
88 #define CL_WITHOUT_TITLE         103
89 #define CL_SECONDS               104
90 #define CL_DATE                  105
91
92 #define CL_LANGUAGE              200
93
94 #define CL_INFO                  301
95 #define CL_INFO_LICENSE          302
96 #define CL_INFO_NO_WARRANTY      303
97 #define CL_INFO_ABOUT_WINE       304
98
99 #define CL_FIRST_LANGUAGE        200
100 #define CL_LAST_LANGUAGE         220