|
-
November 9th, 2004, 06:00 AM
#1
Displaying main menu as a popup menu???
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]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|