changeset 41108:ef7a153a2c68

(add-menu-item): Make help_echo and radio buttons work for most menu items. From David Ponce <david.ponce@wanadoo.fr>.
author Jason Rumney <jasonr@gnu.org>
date Thu, 15 Nov 2001 22:53:54 +0000
parents 2d2069d32fd0
children 0bcf2d7f0112
files src/w32menu.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32menu.c	Thu Nov 15 22:52:00 2001 +0000
+++ b/src/w32menu.c	Thu Nov 15 22:53:54 2001 +0000
@@ -2085,7 +2085,7 @@
 	}
       /* Draw radio buttons and tickboxes. */
       else if (wv->selected && (wv->button_type == BUTTON_TYPE_TOGGLE ||
-                           wv->button_type == BUTTON_TYPE_RADIO))
+				wv->button_type == BUTTON_TYPE_RADIO))
 	fuFlags |= MF_CHECKED;
       else
 	fuFlags |= MF_UNCHECKED;
@@ -2101,7 +2101,7 @@
                 out_string );
 
   /* This must be done after the menu item is created.  */
-  if ((fuFlags & MF_STRING) != 0)
+  if (!wv->title && wv->call_data != 0)
     {
       HMODULE user32 = GetModuleHandle ("user32.dll");
       FARPROC set_menu_item_info = GetProcAddress (user32, "SetMenuItemInfoA");