Fixed some multi-sound card related bugs.
[wine/wine-gecko.git] / programs / clock / main.h
blob7e8f8b66d2372e721c68a9287115494caa304174
1 /*
2 * Clock (main.h)
4 * Copyright 1998 Marcel Baur <mbaur@g26.ethz.ch>
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.
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.
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
21 #include "clock_res.h"
23 #define MAX_STRING_LEN 255
24 #define MAX_PATHNAME_LEN 1024
25 #define MAX_LANGUAGE_NUMBER (CL_LAST_LANGUAGE - CL_FIRST_LANGUAGE)
27 #define HELPFILE "clock.hlp"
28 #define DEFAULTICON OIC_WINLOGO
30 /* hide the following from winerc */
31 #ifndef RC_INVOKED
33 typedef struct
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;
49 BOOL bAnalog;
50 BOOL bAlwaysOnTop;
51 BOOL bWithoutTitle;
52 BOOL bSeconds;
53 BOOL bDate;
55 int MaxX;
56 int MaxY;
57 } CLOCK_GLOBALS;
59 extern CLOCK_GLOBALS Globals;
61 /* function prototypes */
62 VOID MAIN_FileChooseFont(VOID);
64 /* class names */
66 /* Resource names */
67 extern CHAR STRING_MENU_Xx[];
69 #define STRINGID(id) (0x##id + Globals.wStringTableOffset)
71 #else /* RC_INVOKED */
73 #define STRINGID(id) id
75 #endif
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)
83 /* main menu */
85 #define CL_ON_TOP 99
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
94 #define CL_LANGUAGE 200
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
101 #define CL_FIRST_LANGUAGE 200
102 #define CL_LAST_LANGUAGE 220