类VC++界面的程序里面,左面的树视图::OnSelchanged函数:
CView* m_pView;
m_pView->SetComponents(csTmp);SetComponents()是右面CView里面的一个函数,里面试图改变一个CButton m_group的标题: m_caption.ShowWindow(SW_SHOW);。
但是出错access violation: ASSERT(::IsWindow(m_hWnd));
不知道为什么,请前辈不吝指导。