我在程序中CMyButton* m = new CMyButton();然后m->Create()创建一个Button到窗体上我在CMyButton类的OnLButtonDown()事件中想把这个Button删除掉,请问如何建立联系? 直接删除的话delete this好像不行。还有我用这样的方法:
CMainFrame* pMain = (CMainFrame *)AfxGetApp()->m_pMainWnd;
CResEditorView* pView = (CResEditorView *)pMain->GetActiveView();写在OnLButtonDown()中,为什么总是无法正确取得pView,系统总是异常退出?
CMainFrame* pMain = (CMainFrame *)AfxGetApp()->m_pMainWnd;
CResEditorView* pView = (CResEditorView *)pMain->GetActiveView();写在OnLButtonDown()中,为什么总是无法正确取得pView,系统总是异常退出?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货