Bug fixes.
[wine/dcerpc.git] / programs / clock / main.h
blob221b1657feb9079a0b5b17c031da40b8f287f197
1 /*
2 * Clock (main.h)
4 * Copyright 1998 Marcel Baur <mbaur@g26.ethz.ch>
5 */
7 #define MAX_STRING_LEN 255
8 #define MAX_PATHNAME_LEN 1024
9 #define MAX_LANGUAGE_NUMBER (CL_LAST_LANGUAGE - CL_FIRST_LANGUAGE)
11 #define HELPFILE "clock.hlp"
12 #define DEFAULTICON OIC_WINEICON
14 /* hide the following from winerc */
15 #ifndef RC_INVOKED
17 typedef struct
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 LPCSTR lpszLanguage;
32 UINT wStringTableOffset;
34 BOOL bAnalog;
35 BOOL bAlwaysOnTop;
36 BOOL bWithoutTitle;
37 BOOL bSeconds;
38 BOOL bDate;
40 int MaxX;
41 int MaxY;
42 } CLOCK_GLOBALS;
44 extern CLOCK_GLOBALS Globals;
46 /* function prototypes */
47 VOID MAIN_FileChooseFont(VOID);
49 /* class names */
51 /* Resource names */
52 extern CHAR STRING_MENU_Xx[];
54 #define STRINGID(id) (0x##id + Globals.wStringTableOffset)
56 #else /* RC_INVOKED */
58 #define STRINGID(id) id
60 #endif
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)
68 /* main menu */
70 #define CL_ON_TOP 99
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
79 #define CL_LANGUAGE 200
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
86 #define CL_FIRST_LANGUAGE 200
87 #define CL_LAST_LANGUAGE 220