| Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате |
| Форум программистов > Delphi: WinAPI и системное программирование > Как сменить текст в меню |
| Автор: WINAPI 24.12.2005, 20:57 | ||||
| Никак не получается сменить текст в меню вот так пробую
но ничего не происходит как мне его сменить?
|
| Автор: Romikgy 26.12.2005, 09:32 |
| BOOL ModifyMenu( HMENU hMnu, // handle of menu UINT uPosition, // menu item to modify UINT uFlags, // menu item flags UINT uIDNewItem, // menu item identifier or handle of drop-down menu or submenu LPCTSTR lpNewItem // menu item content ); lpNewItem Points to the content of the changed menu item. The interpretation of this parameter depends on whether the uFlags parameter includes the MF_BITMAP, MF_OWNERDRAW, or MF_STRING flag. Value Meaning MF_BITMAP Contains a bitmap handle. MF_OWNERDRAW Contains a 32-bit value supplied by an application that is used to maintain additional data related to the menu item. The value is in the itemData member of the structure pointed to by the lparam parameter of the WM_MEASUREITEM or WM_DRAWITEM messages sent when the menu item is created or its appearance is updated. MF_STRING Contains a pointer to a null-terminated string (the default). |