VC 中怎样使COMBO BOX和Edit Box 隐藏和显示?
loving525://这样写的,运行出错了……voidCSMMISView::OnInput(){//TODO:Addyourcommandhandlercodeher...
loving525:
//这样写的,运行出错了……
void CSMMISView::OnInput()
{
// TODO: Add your command handler code here
CININPUT dlg;
GetDlgItem(IDC_INDEX)->ShowWindow(0);
dlg.DoModal();
}
BOOL CWnd::ShowWindow(int nCmdShow)
{
ASSERT(::IsWindow(m_hWnd));//到这句显示"Unhandled expexception ... AccessViolation"
if (m_pCtrlSite == NULL)
return ::ShowWindow(m_hWnd, nCmdShow);
else
return m_pCtrlSite->ShowWindow(nCmdShow);
} 展开
//这样写的,运行出错了……
void CSMMISView::OnInput()
{
// TODO: Add your command handler code here
CININPUT dlg;
GetDlgItem(IDC_INDEX)->ShowWindow(0);
dlg.DoModal();
}
BOOL CWnd::ShowWindow(int nCmdShow)
{
ASSERT(::IsWindow(m_hWnd));//到这句显示"Unhandled expexception ... AccessViolation"
if (m_pCtrlSite == NULL)
return ::ShowWindow(m_hWnd, nCmdShow);
else
return m_pCtrlSite->ShowWindow(nCmdShow);
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询