大家帮多看看代码, 为什么程序停在messagebox时可以接收到TRACE("ONTIMER\n");消息, 点击确定后就没有TRACE("ONTIMER\n");
void CanvasForm::OnTimer(UINT nIDEvent)
{
// TODO: Add your message handler code here and/or call default
TRACE("ONTIMER\n");
//MessageBox("hello");
CFrameWnd::OnTimer(nIDEvent);
}
int CanvasForm::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
return -1;
SetTimer(1,1000,NULL);
MessageBox("hello");
TRACE("SETTIMER");
// TODO: Add your specialized creation code here
return 0;
}