Dear All,

I have a main menu in SDI application.. IDR_MAINFRAME.. Which contain File, Edit, View and Help menu. I want to display this main menu by right clicking on the mouse. When I used following code, It is displaying small bar on left side. I couldnt see File, Edit etc menu...

void CMenuView::OnContextMenu(CWnd* pWnd, CPoint point)
{
// TODO: Add your message handler code here
CMenu* menu_bar = AfxGetMainWnd()->GetMenu();

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

}


How can I display the main menu as such as a popup menu??

Thanks in advance,
Kareem.
mail : [email protected]