~cpp void CMainFrame::OnContextMenu(CWnd* pWnd, CPoint point) { // TODO: Add your message handler code here CMenu *cmenu = GetMenu(); cmenu = cmenu->GetSubMenu(0); cmenu->TrackPopupMenu(0, point.x, point.y, this, NULL); }
~cpp CMenu *cmenu = GetMenu(); cmenu = cmenu->GetSubMenu(0);
~cpp cmenu->TrackPopupMenu(0, point.x, point.y, this, NULL);cmenu(주메뉴의 첫번째 부메뉴판이 기억되어있는)를 좌표 (point.x, point.y) 이후에 표시한다.