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