void CMenusDlg::OnContextMenu(CWnd* pWnd, CPoint point) { // TODO: Add your message handler code here CMenu *m_lMenu; CPoint m_pPoint; m_pPoint=point; ClientToScreen(&m_pPoint); m_lMenu = GetMenu(); m_lMenu = m_lMenu ->GetSubMenu(0); m_lMenu->TrackPopupMenu(TPM_CENTERALIGN+TPM_LEFTBUTTON,m_pPoint.x,m_pPoint.y,this,NULL); }
GetMenu()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)