Mercurial > emacs
changeset 32671:bbd3be4db5f2
(add_menu_item): Do not use MF_OWNERDRAW for titles, as it has stopped working.
(Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like menu-bar.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Thu, 19 Oct 2000 19:25:53 +0000 |
parents | 342abe2141e8 |
children | 070d01d7f871 |
files | src/w32menu.c |
diffstat | 1 files changed, 8 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/w32menu.c Thu Oct 19 19:21:07 2000 +0000 +++ b/src/w32menu.c Thu Oct 19 19:25:53 2000 +0000 @@ -642,7 +642,8 @@ /* Decode the first argument: find the window and the coordinates. */ if (EQ (position, Qt) - || (CONSP (position) && EQ (XCAR (position), Qmenu_bar))) + || (CONSP (position) && (EQ (XCAR (position), Qmenu_bar) + || EQ (XCAR (position), Qtool_bar)))) { /* Use the mouse's current position. */ FRAME_PTR new_f = SELECTED_FRAME (); @@ -840,7 +841,8 @@ /* Decode the first argument: find the window or frame to use. */ if (EQ (position, Qt) - || (CONSP (position) && EQ (XCAR (position), Qmenu_bar))) + || (CONSP (position) && (EQ (XCAR (position), Qmenu_bar) + || EQ (XCAR (position), Qtool_bar)))) { #if 0 /* Using the frame the mouse is on may not be right. */ /* Use the mouse's current position. */ @@ -1569,7 +1571,6 @@ = (Lisp_Object *) alloca (menu_items_used * sizeof (Lisp_Object)); int submenu_depth = 0; int first_pane; - int next_release_must_exit = 0; *error = NULL; @@ -2064,7 +2065,8 @@ out_string = LocalAlloc (0, strlen (wv->name) + 1); strcpy (out_string, wv->name); #endif - fuFlags = MF_OWNERDRAW | MF_DISABLED; + /* NTEMACS_TODO: Why has owner drawing stopped working? */ + fuFlags = /*MF_OWNERDRAW |*/ MF_DISABLED; } /* Draw radio buttons and tickboxes. */ @@ -2096,7 +2098,8 @@ bzero (&info, sizeof (info)); info.cbSize = sizeof (info); info.fMask = MIIM_DATA; - /* Set help string for menu item. */ + + /* Set help string for menu item. */ info.dwItemData = (DWORD)wv->help; if (wv->button_type == BUTTON_TYPE_RADIO)