怎么在对话框中载入指定的菜单项

Posted by 机器人 on 10th 六月 2007 in c/c++

 

BOOL CTxtDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	// TODO: Add extra initialization here
	CMenu *pMenu = new CMenu;
	BOOL ret = pMenu->LoadMenu(菜单ID);
	SetMenu(pMenu);
	return TRUE;  // return TRUE unless you set the focus to a control
   // EXCEPTION: OCX Property Pages should return FALSE
}

 

2007-6-10 机器人于北京

分享到: 新浪微博

Leave a Reply