[code]void CDay6Dlg::OnContextMenu(CWnd* pWnd, CPoint point)
{
// TODO: Add your message handler code here
CMenu *mMenu;
// Get a pointer to the menu
mMenu = GetMenu();
// Get a pointer to the submenu
mMenu = mMenu->GetSubMenu(0);
// Open it as a context menu
// 정렬 , 선택 버튼
mMenu->TrackPopupMenu(TPM_LEFTALIGN + TPM_LEFTBUTTON,
point.x, point.y, pWnd, NULL);
}[/code]
{
// TODO: Add your message handler code here
CMenu *mMenu;
// Get a pointer to the menu
mMenu = GetMenu();
// Get a pointer to the submenu
mMenu = mMenu->GetSubMenu(0);
// Open it as a context menu
// 정렬 , 선택 버튼
mMenu->TrackPopupMenu(TPM_LEFTALIGN + TPM_LEFTBUTTON,
point.x, point.y, pWnd, NULL);
}[/code]
'Windows > MFC' 카테고리의 다른 글
Font (0) | 2013.10.02 |
---|---|
Font list 보기 폰트리스트 (0) | 2013.10.02 |
다이얼로그 띄우기 (0) | 2013.10.02 |
공통 다이얼로그 함수 (0) | 2013.10.02 |
열기창 CFileDialog (0) | 2013.10.02 |