aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/w32term.h42
1 files changed, 28 insertions, 14 deletions
diff --git a/src/w32term.h b/src/w32term.h
index 6b60215314c..95c9b928be9 100644
--- a/src/w32term.h
+++ b/src/w32term.h
@@ -110,15 +110,19 @@ struct w32_display_info
110 /* The cursor to use for vertical scroll bars. */ 110 /* The cursor to use for vertical scroll bars. */
111 Cursor vertical_scroll_bar_cursor; 111 Cursor vertical_scroll_bar_cursor;
112 112
113 /* color palette information */ 113 /* color palette information. */
114 int has_palette; 114 int has_palette;
115 struct w32_palette_entry * color_list; 115 struct w32_palette_entry * color_list;
116 unsigned num_colors; 116 unsigned num_colors;
117 HPALETTE palette; 117 HPALETTE palette;
118 118
119 /* deferred action flags checked when starting frame update */ 119 /* deferred action flags checked when starting frame update. */
120 int regen_palette; 120 int regen_palette;
121 121
122 /* Keystroke that has been faked by Emacs and will be ignored when
123 received; value is reset after key is received. */
124 int faked_key;
125
122 /* A table of all the fonts we have already loaded. */ 126 /* A table of all the fonts we have already loaded. */
123 struct font_info *font_table; 127 struct font_info *font_table;
124 128
@@ -610,18 +614,21 @@ extern void w32_unload_font ();
610#endif /* MSH_MOUSEWHEEL */ 614#endif /* MSH_MOUSEWHEEL */
611 615
612#define WM_EMACS_START (WM_USER + 1) 616#define WM_EMACS_START (WM_USER + 1)
613#define WM_EMACS_KILL (WM_EMACS_START + 0x00) 617#define WM_EMACS_KILL (WM_EMACS_START + 0)
614#define WM_EMACS_CREATEWINDOW (WM_EMACS_START + 0x01) 618#define WM_EMACS_CREATEWINDOW (WM_EMACS_START + 1)
615#define WM_EMACS_DONE (WM_EMACS_START + 0x02) 619#define WM_EMACS_DONE (WM_EMACS_START + 2)
616#define WM_EMACS_CREATESCROLLBAR (WM_EMACS_START + 0x03) 620#define WM_EMACS_CREATESCROLLBAR (WM_EMACS_START + 3)
617#define WM_EMACS_SHOWWINDOW (WM_EMACS_START + 0x04) 621#define WM_EMACS_SHOWWINDOW (WM_EMACS_START + 4)
618#define WM_EMACS_SETWINDOWPOS (WM_EMACS_START + 0x05) 622#define WM_EMACS_SETWINDOWPOS (WM_EMACS_START + 5)
619#define WM_EMACS_DESTROYWINDOW (WM_EMACS_START + 0x06) 623#define WM_EMACS_DESTROYWINDOW (WM_EMACS_START + 6)
620#define WM_EMACS_TRACKPOPUPMENU (WM_EMACS_START + 0x07) 624#define WM_EMACS_TRACKPOPUPMENU (WM_EMACS_START + 7)
621#define WM_EMACS_SETFOCUS (WM_EMACS_START + 0x08) 625#define WM_EMACS_SETFOCUS (WM_EMACS_START + 8)
622#define WM_EMACS_SETFOREGROUND (WM_EMACS_START + 0x09) 626#define WM_EMACS_SETFOREGROUND (WM_EMACS_START + 9)
623#define WM_EMACS_SETLOCALE (WM_EMACS_START + 0x0a) 627#define WM_EMACS_SETLOCALE (WM_EMACS_START + 10)
624#define WM_EMACS_END (WM_EMACS_START + 0x0b) 628#define WM_EMACS_SETKEYBOARDLAYOUT (WM_EMACS_START + 11)
629#define WM_EMACS_REGISTER_HOT_KEY (WM_EMACS_START + 12)
630#define WM_EMACS_UNREGISTER_HOT_KEY (WM_EMACS_START + 13)
631#define WM_EMACS_END (WM_EMACS_START + 14)
625 632
626#define WND_FONTWIDTH_INDEX (0) 633#define WND_FONTWIDTH_INDEX (0)
627#define WND_LINEHEIGHT_INDEX (4) 634#define WND_LINEHEIGHT_INDEX (4)
@@ -699,3 +706,10 @@ extern BOOL parse_button ();
699#define VK_RWIN 0x5C 706#define VK_RWIN 0x5C
700#define VK_APPS 0x5D 707#define VK_APPS 0x5D
701#endif 708#endif
709
710/* Support for treating Windows and Apps keys as modifiers. These
711 constants must not overlap with any of the dwControlKeyState flags in
712 KEY_EVENT_RECORD. */
713#define LEFT_WIN_PRESSED 0x8000
714#define RIGHT_WIN_PRESSED 0x4000
715#define APPS_PRESSED 0x2000