U E D R , A S I H C RSS

5인용C++스터디/메뉴와단축키

  • 꼭 들 것들
    • 메뉴는 떻게 만드나?
    • 메뉴 리는 떻게 나?
    • 메뉴 (Grayed, Checked) 리는 떻게 나?
    • 떻게 만드나?
  • 가면 것들
    • 메뉴는 떻게 만드나?

~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);
메뉴 *cmenu메뉴 부메뉴 다.
~cpp 
cmenu->TrackPopupMenu(0, point.x, point.y, this, NULL);
cmenu(메뉴 부메뉴는)를 (point.x, point.y) 다.
0 메뉴 되게 다.
point.x, point.y : 른 곳

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:22:18
Processing time 0.0075 sec