一个奇怪的timer问题,请教高手。
我的代码如下:
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CFrameWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
::SetTimer(this->m_hWnd,ID_CLOCK_TIMER, 1000, NULL);
return TRUE;
}
我在这里创建了一个ID_CLOCK_TIMER之后在我的MainFrame 的OnTimer中却收不到这个Timer发出的信息,为何?
其实我是想让我的状态栏上的时钟能够以秒为单位刷新。