I have a menu. One of the main menu Items has sub menus. On of the sub menus has some more sub menus.
The sub menu does not has a id since it has submenu, and I don't know what its position to disable it by position.
I tried in a loop 100 ids and couldn't make it disabled.
Please advice, how do I get its position?
m_menu.EnableMenuItem( ID_LANGUAGES_LANG1, MF_DISABLED|MF_GRAYED|MF_BYPOSITION );