16,472
社区成员
发帖
与我相关
我的任务
分享
void CvcMenu2View::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags)
{
// TODO: 在此添加消息处理程序代码和/或调用默认值
if(0x0d==nChar)//判断按下的是否是回车键
{
if(0==++m_nIndex)
{
m_menu.CreatePopupMenu ();
GetParent()->GetMenu()->AppendMenuW (MF_POPUP,(UINT)m_menu.m_hMenu ,(LPCTSTR)"PhoneBook");
GetParent()->DrawMenuBar ();
}
}
CView::OnChar(nChar, nRepCnt, nFlags);
}