我在CMainFrame窗口声明中(.h)定义了CButton对象CButton pbutton;
在CMainFrame::CMainFrame()中
{
pbutton.Create("button",WS_CHILD | WS_VISIBLE
| WS_TABSTOP |ES_AUTOHSCROLL | WS_BORDER,CRect(10,10,20,20),this,MY_BUTTON);
pbutton.ShowWindow(SW_SHOW);//这一句同不过
}
MY_BUTTON定义为200
编译通过但是执行时出现
wincoo.cpp 301 行出现assertion错误请教怎么解决
在CMainFrame::CMainFrame()中
{
pbutton.Create("button",WS_CHILD | WS_VISIBLE
| WS_TABSTOP |ES_AUTOHSCROLL | WS_BORDER,CRect(10,10,20,20),this,MY_BUTTON);
pbutton.ShowWindow(SW_SHOW);//这一句同不过
}
MY_BUTTON定义为200
编译通过但是执行时出现
wincoo.cpp 301 行出现assertion错误请教怎么解决
一开始在CWinFrame中没有这个成员函数