How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?
Answer / 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 |
how u can move CDC pointer to one line in cview?
What is a critical section and how is it implemented?
what is the use of CCmdTarget?
1)does Frame Thickness in MFC?
What does mfc stand for?
Hi All, I have created one MFC Dialog Based application.now if i am running the application its working fine,instead of closing he application i minimized the application,if i run the application again,i am getting the Dialog. I want to prevent the calling of application multiple times. please give me the code and let me know in which method i need to make changes. Praveer
1)How to change a text of a button as Dynamically?
What is userdefine Messages in MFC?
what is the use of CWinApp class?
What is Thread ?(VC++)What is the difference between Cmutex and Csemaphone?
How to setup a timer?
Psychic Window Technique