Small resources fixes.
[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 #include "clock_res.h"
22
23 #define MAX_STRING_LEN      255
24 #define MAX_PATHNAME_LEN    1024
25 #define MAX_LANGUAGE_NUMBER (CL_LAST_LANGUAGE - CL_FIRST_LANGUAGE)
26
27 #define HELPFILE    "clock.hlp"
28 #define DEFAULTICON OIC_WINLOGO
29
30 /* hide the following from winerc */
31 #ifndef RC_INVOKED
32
33 typedef struct
34 {
35   HANDLE  hInstance;
36   HWND    hMainWnd;
37   HICON   hMainIcon;
38   HICON   hDefaultIcon;
39   HMENU   hMainMenu;
40   HMENU   hPropertiesMenu;
41   HMENU   hLanguageMenu;
42   HMENU   hInfoMenu;
43   HMENU   hSystemMenu;
44   HMENU   hPopupMenu1;
45   LPCSTR  lpszIniFile;
46   LPCSTR  lpszIcoFile;
47   UINT    wStringTableOffset;
48
49   BOOL    bAnalog;
50   BOOL    bAlwaysOnTop;
51   BOOL    bWithoutTitle;
52   BOOL    bSeconds;
53   BOOL    bDate;
54
55   int     MaxX;
56   int     MaxY;
57 } CLOCK_GLOBALS;
58
59 extern CLOCK_GLOBALS Globals;
60
61 /* function prototypes */
62 VOID MAIN_FileChooseFont(VOID);
63
64 /* class names */
65
66 /* Resource names */
67 extern CHAR STRING_MENU_Xx[];
68
69    #define STRINGID(id) (0x##id + Globals.wStringTableOffset)
70
71 #else  /* RC_INVOKED */
72
73    #define STRINGID(id) id
74
75 #endif
76
77 /* string table index */
78 #define IDS_LANGUAGE_ID                STRINGID(00)
79 #define IDS_LANGUAGE_MENU_ITEM         STRINGID(01)
80 #define IDS_CLOCK                      STRINGID(02)
81 #define IDS_MENU_ON_TOP                STRINGID(03)
82
83 /* main menu */
84
85 #define CL_ON_TOP                99
86
87 #define CL_ANALOG                100
88 #define CL_DIGITAL               101
89 #define CL_FONT                  102
90 #define CL_WITHOUT_TITLE         103
91 #define CL_SECONDS               104
92 #define CL_DATE                  105
93
94 #define CL_LANGUAGE              200
95
96 #define CL_INFO                  301
97 #define CL_INFO_LICENSE          302
98 #define CL_INFO_NO_WARRANTY      303
99 #define CL_INFO_ABOUT_WINE       304
100
101 #define CL_FIRST_LANGUAGE        200
102 #define CL_LAST_LANGUAGE         220