+2001-11-28 Jason Rumney <jasonr@gnu.org>
+
+ * w32menu.c (add_menu_item): Do not use owner-draw for disabled
+ menu items. From David Ponce <dponce@wanadoo.fr>.
+ (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
+ conditionally.
+ (w32_menu_display_help): New argument OWNER. Rewritten to store a
+ help event in the owner frame's keyboard buffer.
+
+ * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
+ (Fx_show_tip): Don't subtract last width from row width.
+
+ * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
+ (w32_read_socket): Use EQ to compare frames.
+
2001-11-28 Gerd Moellmann <gerd@gnu.org>
* xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
extern void free_frame_menubar ();
-extern void w32_menu_display_help (HMENU menu, UINT menu_item, UINT flags);
-
extern int w32_codepage_for_font (char *fontname);
extern glyph_metric *w32_BDF_TextMetric(bdffont *fontp,
}
break;
- case WM_MENUSELECT:
- {
- HMENU menu = (HMENU) msg.msg.lParam;
- UINT menu_item = (UINT) LOWORD (msg.msg.wParam);
- UINT flags = (UINT) HIWORD (msg.msg.wParam);
-
- w32_menu_display_help (menu, menu_item, flags);
- }
- break;
-
case WM_DROPFILES:
f = x_window_to_frame (dpyinfo, msg.msg.hwnd);
FRAME_PTR f = XFRAME (frame);
/* The tooltip has been drawn already. Avoid the
SET_FRAME_GARBAGED below. */
- if (f == XFRAME (tip_frame))
+ if (EQ (frame, tip_frame))
continue;
/* Check "visible" frames and mark each as obscured or not.