1 /* Copyright (C) 2001 by Alex Kompel <shurikk@pacbell.net> */
2 /* NetHack may be freely redistributed.  See license for details. */
3 
4 #ifndef MHNethackMessages_H
5 #define MHNethackMessages_H
6 
7 /* nethack messages */
8 #define WM_MSNH_COMMAND  (WM_APP+1)
9 
10 #define MSNH_MSG_ADDWND			100
11 #define MSNH_MSG_PUTSTR			101
12 #define MSNH_MSG_PRINT_GLYPH	102
13 #define MSNH_MSG_CLEAR_WINDOW	103
14 #define MSNH_MSG_CLIPAROUND		104
15 #define MSNH_MSG_STARTMENU		105
16 #define MSNH_MSG_ADDMENU		106
17 #define MSNH_MSG_CURSOR			107
18 #define MSNH_MSG_ENDMENU		108
19 #define MSNH_MSG_DIED			109
20 #define MSNH_MSG_CARET			110
21 
22 typedef struct mswin_nhmsg_add_wnd {
23   winid		  wid;
24 } MSNHMsgAddWnd, *PMSNHMsgAddWnd;
25 
26 typedef struct mswin_nhmsg_putstr {
27   int		  attr;
28   const char* text;
29   boolean	  append;
30 } MSNHMsgPutstr, *PMSNHMsgPutstr;
31 
32 typedef struct mswin_nhmsg_print_glyph {
33   XCHAR_P		x;
34   XCHAR_P		y;
35   int			glyph;
36 } MSNHMsgPrintGlyph, *PMSNHMsgPrintGlyph;
37 
38 typedef struct mswin_nhmsg_cliparound {
39   int			x;
40   int			y;
41 } MSNHMsgClipAround, *PMSNHMsgClipAround;
42 
43 typedef struct mswin_nhmsg_add_menu {
44 	int				glyph;
45 	const ANY_P*	identifier;
46 	CHAR_P			accelerator;
47 	CHAR_P			group_accel;
48 	int				attr;
49 	const char *	str;
50 	BOOLEAN_P		presel;
51 } MSNHMsgAddMenu, *PMSNHMsgAddMenu;
52 
53 typedef struct mswin_nhmsg_cursor {
54   int			x;
55   int			y;
56 } MSNHMsgCursor, *PMSNHMsgCursor;
57 
58 typedef struct mswin_nhmsg_end_menu {
59 	const char* text;
60 } MSNHMsgEndMenu, *PMSNHMsgEndMenu;
61 
62 #endif
63