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

What is the difference between the SDI and MDI

3 Answers   Invensys,


Does the application have more than one object? If no, then what is the reason?

5 Answers  


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

1 Answers  


What is socket?

3 Answers  


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

2 Answers  


Why not virtual functions to handle messages?

5 Answers  


what is the use of Mutex and critical section

2 Answers  


I can i set size of integer variable should be fixed for different operating systems(Ex i want integer size is 2bytes in OS)

2 Answers   Invensys,


how does conditionally close the Dialog Box ?

2 Answers   Infotech,


1)why we cant create more than one instance of the class Derived from CWinApp

5 Answers   Alstom,


If application hangs while SendMessage is waiting for the result, how you handle it?

2 Answers  


What is the difference between hinsrtance and hprevinstance in WinMain function?

3 Answers  


Categories