NHDT->ANH, nethack->anethack, nhdat->anhdat
[aNetHack.git] / sys / wince / mhmsg.h
blob5197f3c2e3022624f0c038ff01e9cfd08b8d92c3
1 /* aNetHack 0.0.1 mhmsg.h $ANH-Date: 1432512800 2015/05/25 00:13:20 $ $ANH-Branch: master $:$ANH-Revision: 1.12 $ */
2 /* Copyright (C) 2001 by Alex Kompel */
3 /* aNetHack may be freely redistributed. See license for details. */
5 #ifndef MHNethackMessages_H
6 #define MHNethackMessages_H
8 /* anethack messages */
9 #define WM_MSNH_COMMAND (WM_APP + 1)
11 #define MSNH_MSG_ADDWND 100
12 #define MSNH_MSG_PUTSTR 101
13 #define MSNH_MSG_PRINT_GLYPH 102
14 #define MSNH_MSG_CLEAR_WINDOW 103
15 #define MSNH_MSG_CLIPAROUND 104
16 #define MSNH_MSG_STARTMENU 105
17 #define MSNH_MSG_ADDMENU 106
18 #define MSNH_MSG_CURSOR 107
19 #define MSNH_MSG_ENDMENU 108
21 typedef struct mswin_nhmsg_add_wnd {
22 winid wid;
23 } MSNHMsgAddWnd, *PMSNHMsgAddWnd;
25 typedef struct mswin_nhmsg_putstr {
26 int attr;
27 const char *text;
28 boolean append;
29 } MSNHMsgPutstr, *PMSNHMsgPutstr;
31 typedef struct mswin_nhmsg_print_glyph {
32 XCHAR_P x;
33 XCHAR_P y;
34 int glyph;
35 } MSNHMsgPrintGlyph, *PMSNHMsgPrintGlyph;
37 typedef struct mswin_nhmsg_cliparound {
38 int x;
39 int y;
40 } MSNHMsgClipAround, *PMSNHMsgClipAround;
42 typedef struct mswin_nhmsg_add_menu {
43 int glyph;
44 const ANY_P *identifier;
45 CHAR_P accelerator;
46 CHAR_P group_accel;
47 int attr;
48 const char *str;
49 BOOLEAN_P presel;
50 } MSNHMsgAddMenu, *PMSNHMsgAddMenu;
52 typedef struct mswin_nhmsg_cursor {
53 int x;
54 int y;
55 } MSNHMsgCursor, *PMSNHMsgCursor;
57 typedef struct mswin_nhmsg_end_menu {
58 const char *text;
59 } MSNHMsgEndMenu, *PMSNHMsgEndMenu;
61 #endif