Merged msacm and msacm32 dlls.
[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   HMENU   hSystemMenu;
28   HMENU   hPopupMenu1;
29   LPCSTR  lpszIniFile;
30   LPCSTR  lpszIcoFile;
31   LPSTR   lpszLanguage;
32   UINT    wStringTableOffset;
33
34   BOOL    bAnalog;
35   BOOL    bAlwaysOnTop;
36   BOOL    bWithoutTitle;
37   BOOL    bSeconds;
38   BOOL    bDate;  
39
40   int     MaxX;
41   int     MaxY;
42 } CLOCK_GLOBALS;
43
44 extern CLOCK_GLOBALS Globals;
45
46 /* function prototypes */
47 VOID MAIN_FileChooseFont(VOID);
48
49 /* class names */
50
51 /* Resource names */
52 extern CHAR STRING_MENU_Xx[];
53
54    #define STRINGID(id) (0x##id + Globals.wStringTableOffset)
55    
56 #else  /* RC_INVOKED */
57
58    #define STRINGID(id) id
59    
60 #endif
61
62 /* string table index */
63 #define IDS_LANGUAGE_ID                STRINGID(00)
64 #define IDS_LANGUAGE_MENU_ITEM         STRINGID(01)
65 #define IDS_CLOCK                      STRINGID(02)
66 #define IDS_MENU_ON_TOP                STRINGID(03)
67
68 /* main menu */
69
70 #define CL_ON_TOP                99
71
72 #define CL_ANALOG                100
73 #define CL_DIGITAL               101
74 #define CL_FONT                  102
75 #define CL_WITHOUT_TITLE         103
76 #define CL_SECONDS               104
77 #define CL_DATE                  105
78
79 #define CL_LANGUAGE              200
80
81 #define CL_INFO                  301
82 #define CL_INFO_LICENSE          302
83 #define CL_INFO_NO_WARRANTY      303
84 #define CL_INFO_ABOUT_WINE       304
85
86 #define CL_FIRST_LANGUAGE        200
87 #define CL_LAST_LANGUAGE         220