2085 |
} |
} |
2086 |
/* Draw radio buttons and tickboxes. */ |
/* Draw radio buttons and tickboxes. */ |
2087 |
else if (wv->selected && (wv->button_type == BUTTON_TYPE_TOGGLE || |
else if (wv->selected && (wv->button_type == BUTTON_TYPE_TOGGLE || |
2088 |
wv->button_type == BUTTON_TYPE_RADIO)) |
wv->button_type == BUTTON_TYPE_RADIO)) |
2089 |
fuFlags |= MF_CHECKED; |
fuFlags |= MF_CHECKED; |
2090 |
else |
else |
2091 |
fuFlags |= MF_UNCHECKED; |
fuFlags |= MF_UNCHECKED; |
2101 |
out_string ); |
out_string ); |
2102 |
|
|
2103 |
/* This must be done after the menu item is created. */ |
/* This must be done after the menu item is created. */ |
2104 |
if ((fuFlags & MF_STRING) != 0) |
if (!wv->title && wv->call_data != 0) |
2105 |
{ |
{ |
2106 |
HMODULE user32 = GetModuleHandle ("user32.dll"); |
HMODULE user32 = GetModuleHandle ("user32.dll"); |
2107 |
FARPROC set_menu_item_info = GetProcAddress (user32, "SetMenuItemInfoA"); |
FARPROC set_menu_item_info = GetProcAddress (user32, "SetMenuItemInfoA"); |