I am using the code snippet below in a dialog based application(MFC) to get dynamic menu items.
G | MF_ENABLED, /*cmdID*/ 50001, "New Item");
It throws no errors but doing nothing. i.e. No new menuitem is appended to the existing menu. Can anybody help me. I'll be extremely thankful. And How can i catch the COMMAND messages for newly created menu items ??.
I have implemented the OnInitMenuPopup() also (as said in www.support.microsoft.com/support/kb/articles/Q242/5/77.asp
) to test if it has any effect, but Nothing happened.
Please help to sort out these problems...