Release 980301
[wine] / programs / clock / main.h
1 /*
2  * Clock (main.h)
3  *
4  * Copyright 1998 Marcel Baur <mbaur@g26.ethz.ch>
5  */
6
7 #define MAX_STRING_LEN      255
8 #define MAX_PATHNAME_LEN    1024
9 #define MAX_LANGUAGE_NUMBER (CL_LAST_LANGUAGE - CL_FIRST_LANGUAGE)
10
11 #define HELPFILE    "clock.hlp"
12 #define DEFAULTICON OIC_WINEICON
13
14 /* hide the following from winerc */
15 #ifndef RC_INVOKED
16
17 typedef struct
18 {
19   HANDLE  hInstance;
20   HWND    hMainWnd;
21   HICON   hMainIcon;
22   HICON   hDefaultIcon;
23   HMENU   hMainMenu;
24   HMENU   hPropertiesMenu;
25   HMENU   hLanguageMenu;
26   HMENU   hInfoMenu;
27   LPCSTR  lpszIniFile;
28   LPCSTR  lpszIcoFile;
29   LPCSTR  lpszLanguage;
30   UINT    wStringTableOffset;
31
32   BOOL    bAnalog;
33   BOOL    bAlwaysOnTop;
34   BOOL    bWithoutTitle;
35   BOOL    bSeconds;
36   BOOL    bDate;  
37
38   int     MaxX;
39   int     MaxY;
40 } CLOCK_GLOBALS;
41
42 extern CLOCK_GLOBALS Globals;
43
44 /* function prototypes */
45 VOID MAIN_SelectLanguageByName(LPCSTR);
46 VOID MAIN_SelectLanguageByNumber(UINT);
47
48 /* class names */
49
50 /* Resource names */
51 extern CHAR STRING_MENU_Xx[];
52
53    #define STRINGID(id) (0x##id + Globals.wStringTableOffset)
54    
55 #else  /* RC_INVOKED */
56
57    #define STRINGID(id) id
58    
59 #endif
60
61 /* string table index */
62 #define IDS_LANGUAGE_ID                STRINGID(00)
63 #define IDS_LANGUAGE_MENU_ITEM         STRINGID(01)
64 #define IDS_CLOCK                      STRINGID(02)
65
66 /* main menu */
67
68 #define CL_ANALOG                100
69 #define CL_DIGITAL               101
70 #define CL_FONT                  102
71 #define CL_WITHOUT_TITLE         103
72 #define CL_ON_TOP                104
73 #define CL_SECONDS               105
74 #define CL_DATE                  106
75
76 #define CL_LANGUAGE              108
77
78 #define CL_INFO                  186
79 #define CL_INFO_LICENSE          187
80 #define CL_INFO_NO_WARRANTY      188
81 #define CL_INFO_ABOUT_WINE       189
82
83 #define CL_FIRST_LANGUAGE        109
84 #define CL_LAST_LANGUAGE         185