Is it possible to add menuitems during runtime using commands at runtime.
If possible what is the function I should use to do so.
Any response is greatly appreciated.
Emus21
Is it possible to add menuitems during runtime using commands at runtime.
If possible what is the function I should use to do so.
Any response is greatly appreciated.
Emus21
Keep smiling, it makes the big guys wonder what you're up to.
Add an item with InsertMenuItem() and delete them with DeleteMenu(). Useful API routines to consider when playing with this stuff are, GetMenu() and GetSubMenu() to get handles, EnableMenuItem() enables or disables items and if you want to get deep into it, you can use GetMenuItemInfo() and SetMenuItemInfo() to do several modifcations at the same time.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
Thanks much, I'll try them.
Keep smiling, it makes the big guys wonder what you're up to.
If it fails to update (can't see the changes on screen) call for the menu to be redrawn with
DrawMenuBar(hWndDlg)
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill