2089 |
} |
} |
2090 |
/* Draw radio buttons and tickboxes. */ |
/* Draw radio buttons and tickboxes. */ |
2091 |
else if (wv->selected && (wv->button_type == BUTTON_TYPE_TOGGLE || |
else if (wv->selected && (wv->button_type == BUTTON_TYPE_TOGGLE || |
2092 |
wv->button_type == BUTTON_TYPE_RADIO)) |
wv->button_type == BUTTON_TYPE_RADIO)) |
2093 |
fuFlags |= MF_CHECKED; |
fuFlags |= MF_CHECKED; |
2094 |
else |
else |
2095 |
fuFlags |= MF_UNCHECKED; |
fuFlags |= MF_UNCHECKED; |
2105 |
out_string ); |
out_string ); |
2106 |
|
|
2107 |
/* This must be done after the menu item is created. */ |
/* This must be done after the menu item is created. */ |
2108 |
if ((fuFlags & MF_STRING) != 0) |
if (!wv->title && wv->call_data != 0) |
2109 |
{ |
{ |
2110 |
HMODULE user32 = GetModuleHandle ("user32.dll"); |
HMODULE user32 = GetModuleHandle ("user32.dll"); |
2111 |
FARPROC set_menu_item_info = GetProcAddress (user32, "SetMenuItemInfoA"); |
FARPROC set_menu_item_info = GetProcAddress (user32, "SetMenuItemInfoA"); |