Forum Discussion
Not able to load all menu items in windows 10
Hi
I am in the process of building a drop down menu in my 32 bit application on windows 10 machine. The menu is quite big, containing 1321 entries.
My application, however, is able to load only 1168 entries out of 1321.
I tried to debug the issue and found out that AppendMenu fails after 1168 entries with the return value as 0. I tried to find out the error code by using GetLastError(). To my surprise, GetLastError() is returning 0(operation completed successfully). I am using AppendMenu as folllows:
bool stat = pMenu->AppendMenu(MF_STRING ,nID,str);
where pMenu is a pointer of type CMenu.
This very issue is not reproducible on Windows 2016 version.
Is there any limitation on the number of entries allowed in a menu in windows 10 machine OR there is some other issue.
Please help me resolve this.