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 20 typedef struct mswin_nhmsg_add_wnd { 21 winid wid; 22 } MSNHMsgAddWnd, *PMSNHMsgAddWnd; 23 24 typedef struct mswin_nhmsg_putstr { 25 int attr; 26 const char* text; 27 boolean append; 28 } MSNHMsgPutstr, *PMSNHMsgPutstr; 29 30 typedef struct mswin_nhmsg_print_glyph { 31 XCHAR_P x; 32 XCHAR_P y; 33 int glyph; 34 } MSNHMsgPrintGlyph, *PMSNHMsgPrintGlyph; 35 36 typedef struct mswin_nhmsg_cliparound { 37 int x; 38 int y; 39 } MSNHMsgClipAround, *PMSNHMsgClipAround; 40 41 typedef struct mswin_nhmsg_add_menu { 42 int glyph; 43 const ANY_P* identifier; 44 CHAR_P accelerator; 45 CHAR_P group_accel; 46 int attr; 47 const char * str; 48 BOOLEAN_P presel; 49 } MSNHMsgAddMenu, *PMSNHMsgAddMenu; 50 51 typedef struct mswin_nhmsg_cursor { 52 int x; 53 int y; 54 } MSNHMsgCursor, *PMSNHMsgCursor; 55 56 typedef struct mswin_nhmsg_end_menu { 57 const char* text; 58 } MSNHMsgEndMenu, *PMSNHMsgEndMenu; 59 60 #endif 61