Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to handle dynamic menus in MFC?

Answers were Sorted based on User's Feedback



How to handle dynamic menus in MFC?..

Answer / fahim

Dynamic menus can be handled using Cmenu's
Createmenu,Insrtmenu and Appendmenu functions.

Is This Answer Correct ?    5 Yes 1 No

How to handle dynamic menus in MFC?..

Answer / swetha palanki

//create object of CMenu in .h file of the frame window.
CMenu m_MyMenu;
//implement this is .cpp of frame window.
m_MyMenu = LoadMenu(ID_Menu1);
SetMenu(m_MyMenu);

Is This Answer Correct ?    2 Yes 3 No

How to handle dynamic menus in MFC?..

Answer / sudhir kumar singh

CMenu contextMenuitm;
contextMenuitm.LoadMenu(IDR_SUBMIT);
CButton *pButton;
pButton=reinterpret_cast<CButton *>(GetDlgItem
(IDC_SUBMIT_BTN));
CRect rectSubmitButton;
pButton->GetWindowRect(&rectSubmitButton);
CMenu *getPopupMenu=contextMenuitm.GetSubMenu(0);

getPopupMenu->TrackPopupMenu(TPM_LEFTALIGN |
TPM_RIGHTBUTTON, point.x, point.y, this);

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More MFC Interview Questions

Will there be any difference in the image buffer size if it is loaded in from CString to LPTSTR using GetBuffer()? lptstr = string.GetBuffer(0);

2 Answers  


What interface must be supported by an ActiveX control?

2 Answers  


What function is used to disable a control at runtime?

7 Answers  


1)At run-time, you can change the icon by calling the LoadIcon() function?

2 Answers  


what is the component of CLR ?

8 Answers   AZTEC, Symphony,


What is a message map, and what is the advantage of a message map over virtual functions?

1 Answers  


What is #progma and where it is used?

5 Answers   L&T,


What is Thread ?(VC++)What is the difference between Cmutex and Csemaphone?

5 Answers   Atos Origin,


Difference between Cclint DC & Cpaint Dc

6 Answers   E Logic,


Explain StretchBlt and BitBlt

1 Answers  


What is the difference between Extension DLL and Regular DLL?

6 Answers   GE,


How do you change the properties for a tree view control that is part of the CTreeView class?

1 Answers  


Categories