Added an unknown VxD error code.
[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_WINLOGO
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   HMENU   hSystemMenu;
28   HMENU   hPopupMenu1;
29   LPCSTR  lpszIniFile;
30   LPCSTR  lpszIcoFile;
31   UINT    wStringTableOffset;
32
33   BOOL    bAnalog;
34   BOOL    bAlwaysOnTop;
35   BOOL    bWithoutTitle;
36   BOOL    bSeconds;
37   BOOL    bDate;  
38
39   int     MaxX;
40   int     MaxY;
41 } CLOCK_GLOBALS;
42
43 extern CLOCK_GLOBALS Globals;
44
45 /* function prototypes */
46 VOID MAIN_FileChooseFont(VOID);
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 #define IDS_MENU_ON_TOP                STRINGID(03)
66
67 /* main menu */
68
69 #define CL_ON_TOP                99
70
71 #define CL_ANALOG                100
72 #define CL_DIGITAL               101
73 #define CL_FONT                  102
74 #define CL_WITHOUT_TITLE         103
75 #define CL_SECONDS               104
76 #define CL_DATE                  105
77
78 #define CL_LANGUAGE              200
79
80 #define CL_INFO                  301
81 #define CL_INFO_LICENSE          302
82 #define CL_INFO_NO_WARRANTY      303
83 #define CL_INFO_ABOUT_WINE       304
84
85 #define CL_FIRST_LANGUAGE        200
86 #define CL_LAST_LANGUAGE         220