diff options
| author | Jason Rumney | 2000-10-19 19:25:53 +0000 |
|---|---|---|
| committer | Jason Rumney | 2000-10-19 19:25:53 +0000 |
| commit | 0b6bb670882121224aec4a76555b2c526fdf8d03 (patch) | |
| tree | a3ddcfe74fc1116d48db339eab095e07ec2acb84 /src | |
| parent | 2d0c0bd755321d6d1815fd6f619a100cdebf5d2e (diff) | |
| download | emacs-0b6bb670882121224aec4a76555b2c526fdf8d03.tar.gz emacs-0b6bb670882121224aec4a76555b2c526fdf8d03.zip | |
(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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32menu.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/w32menu.c b/src/w32menu.c index 257722550ab..b62f7af2776 100644 --- a/src/w32menu.c +++ b/src/w32menu.c | |||
| @@ -642,7 +642,8 @@ cached information about equivalent key sequences.") | |||
| 642 | 642 | ||
| 643 | /* Decode the first argument: find the window and the coordinates. */ | 643 | /* Decode the first argument: find the window and the coordinates. */ |
| 644 | if (EQ (position, Qt) | 644 | if (EQ (position, Qt) |
| 645 | || (CONSP (position) && EQ (XCAR (position), Qmenu_bar))) | 645 | || (CONSP (position) && (EQ (XCAR (position), Qmenu_bar) |
| 646 | || EQ (XCAR (position), Qtool_bar)))) | ||
| 646 | { | 647 | { |
| 647 | /* Use the mouse's current position. */ | 648 | /* Use the mouse's current position. */ |
| 648 | FRAME_PTR new_f = SELECTED_FRAME (); | 649 | FRAME_PTR new_f = SELECTED_FRAME (); |
| @@ -840,7 +841,8 @@ on the left of the dialog box and all following items on the right.\n\ | |||
| 840 | 841 | ||
| 841 | /* Decode the first argument: find the window or frame to use. */ | 842 | /* Decode the first argument: find the window or frame to use. */ |
| 842 | if (EQ (position, Qt) | 843 | if (EQ (position, Qt) |
| 843 | || (CONSP (position) && EQ (XCAR (position), Qmenu_bar))) | 844 | || (CONSP (position) && (EQ (XCAR (position), Qmenu_bar) |
| 845 | || EQ (XCAR (position), Qtool_bar)))) | ||
| 844 | { | 846 | { |
| 845 | #if 0 /* Using the frame the mouse is on may not be right. */ | 847 | #if 0 /* Using the frame the mouse is on may not be right. */ |
| 846 | /* Use the mouse's current position. */ | 848 | /* Use the mouse's current position. */ |
| @@ -1569,7 +1571,6 @@ w32_menu_show (f, x, y, for_click, keymaps, title, error) | |||
| 1569 | = (Lisp_Object *) alloca (menu_items_used * sizeof (Lisp_Object)); | 1571 | = (Lisp_Object *) alloca (menu_items_used * sizeof (Lisp_Object)); |
| 1570 | int submenu_depth = 0; | 1572 | int submenu_depth = 0; |
| 1571 | int first_pane; | 1573 | int first_pane; |
| 1572 | int next_release_must_exit = 0; | ||
| 1573 | 1574 | ||
| 1574 | *error = NULL; | 1575 | *error = NULL; |
| 1575 | 1576 | ||
| @@ -2064,7 +2065,8 @@ add_menu_item (HMENU menu, widget_value *wv, HMENU item) | |||
| 2064 | out_string = LocalAlloc (0, strlen (wv->name) + 1); | 2065 | out_string = LocalAlloc (0, strlen (wv->name) + 1); |
| 2065 | strcpy (out_string, wv->name); | 2066 | strcpy (out_string, wv->name); |
| 2066 | #endif | 2067 | #endif |
| 2067 | fuFlags = MF_OWNERDRAW | MF_DISABLED; | 2068 | /* NTEMACS_TODO: Why has owner drawing stopped working? */ |
| 2069 | fuFlags = /*MF_OWNERDRAW |*/ MF_DISABLED; | ||
| 2068 | } | 2070 | } |
| 2069 | 2071 | ||
| 2070 | /* Draw radio buttons and tickboxes. */ | 2072 | /* Draw radio buttons and tickboxes. */ |
| @@ -2096,7 +2098,8 @@ add_menu_item (HMENU menu, widget_value *wv, HMENU item) | |||
| 2096 | bzero (&info, sizeof (info)); | 2098 | bzero (&info, sizeof (info)); |
| 2097 | info.cbSize = sizeof (info); | 2099 | info.cbSize = sizeof (info); |
| 2098 | info.fMask = MIIM_DATA; | 2100 | info.fMask = MIIM_DATA; |
| 2099 | /* Set help string for menu item. */ | 2101 | |
| 2102 | /* Set help string for menu item. */ | ||
| 2100 | info.dwItemData = (DWORD)wv->help; | 2103 | info.dwItemData = (DWORD)wv->help; |
| 2101 | 2104 | ||
| 2102 | if (wv->button_type == BUTTON_TYPE_RADIO) | 2105 | if (wv->button_type == BUTTON_TYPE_RADIO) |