Mercurial > emacs
comparison src/w32menu.c @ 22750:b38cb406ed80
(add_menu_item): Draw menu items like titles if call_data is 0.
author | Andrew Innes <andrewi@gnu.org> |
---|---|
date | Mon, 13 Jul 1998 19:54:15 +0000 |
parents | 41e01b5de7cc |
children | 9154af188477 |
comparison
equal
deleted
inserted
replaced
22749:14bde44d261c | 22750:b38cb406ed80 |
---|---|
2045 | 2045 |
2046 if (name_is_separator (wv->name)) | 2046 if (name_is_separator (wv->name)) |
2047 fuFlags = MF_SEPARATOR; | 2047 fuFlags = MF_SEPARATOR; |
2048 else | 2048 else |
2049 { | 2049 { |
2050 if (wv->enabled && wv->call_data != 0) | 2050 if (wv->enabled) |
2051 fuFlags = MF_STRING; | 2051 fuFlags = MF_STRING; |
2052 else | 2052 else |
2053 fuFlags = MF_STRING | MF_GRAYED; | 2053 fuFlags = MF_STRING | MF_GRAYED; |
2054 | 2054 |
2055 if (wv->key != NULL) | 2055 if (wv->key != NULL) |
2060 strcat (out_string, wv->key); | 2060 strcat (out_string, wv->key); |
2061 } | 2061 } |
2062 else | 2062 else |
2063 out_string = wv->name; | 2063 out_string = wv->name; |
2064 | 2064 |
2065 if (wv->title) | 2065 if (wv->title || wv->call_data == 0) |
2066 { | 2066 { |
2067 #if 0 /* no GC while popup menu is active */ | 2067 #if 0 /* no GC while popup menu is active */ |
2068 out_string = LocalAlloc (0, strlen (wv->name) + 1); | 2068 out_string = LocalAlloc (0, strlen (wv->name) + 1); |
2069 strcpy (out_string, wv->name); | 2069 strcpy (out_string, wv->name); |
2070 #endif | 2070 #endif |