# HG changeset patch # User Jason Rumney # Date 1005864834 0 # Node ID ef7a153a2c6808c7573c29c8b06c77925eecb3fb # Parent 2d2069d32fd05b3bff13d928512a5760bd427618 (add-menu-item): Make help_echo and radio buttons work for most menu items. From David Ponce . diff -r 2d2069d32fd0 -r ef7a153a2c68 src/w32menu.c --- 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");