pouupmenu 
Author Message
 pouupmenu

Hi,
______________________
|    toolbar                            |
|---------------------------- |   ->SDI
|    View                               |
|_____________________||

I have developed Popup(floating)Menu with SDI On The MFC(VC++5.0).
The problem is  that whenever I right _click both the view area and
toolbar area the has been appeared.
But I don't want the pouup menu to be appeared on the view area.
I want  the popup menu to be appeared on the toolbar area.
please help me.please give me the sample code!!

reference->

void CMainFrame::OnContextMenu(CWnd* pWnd, CPoint point)
{
 // TODO: Add your message handler code here
 CMenu Float;
 Float.LoadMenu(IDR_MAINFRAME);
 Float.GetSubMenu(0)->TrackPopupMenu(TPM_LEFTALIGN|TPM_RIGHTBUTTON,point.x,point.y,this);

Quote:
}



Wed, 02 Aug 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 
 

 
Powered by phpBB® Forum Software