Click here to Skip to main content
16,022,339 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How do I programatically get the number of menus in a menu bar or a submenu?

What I have tried:

I hve google searched, but no relevant result.
Posted
Updated 29-Jun-24 11:59am

1 solution

You should be able to use a combination of GetMenu[^], GetSubMenu[^], and GetMenuItemCount[^] to accomplish this.
 
Share this answer
 
Comments
Gbenbam 30-Jun-24 9:14am    
Thanks.I knew there must be something like that. I thought I had searched diligently enough. One again thanks. Of course, I know about GetMenu and GetSubMenu already.
Pete O'Hanlon 30-Jun-24 9:42am    
My pleasure. It's easy to miss.
PIEBALDconsult 30-Jun-24 15:38pm    
I would have said "recursion", but I held my tongue.
OriginalGriff 30-Jun-24 23:42pm    
You should have got your tongue to hold itself ...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900