adspace


How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?

Answer Posted / Mohd Nadeem

In MFC, you can create dynamic menus by creating a menu resource and modifying it at runtime. To handle such menus, override the OnCreateMenu() or OnCreateContextMenu() function. When a client calls CoCreateInstance(), it creates a new COM object using the specified class ID and allocates memory for it.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category