|
刚刚踩了个小坑。
创建窗口的时候,我们有时候是create window,有时候是create Framewin。 他们的回调函数指示的窗口是不一样的,可是看起来是一样的。
比如: hWin = GUI_CreateDialogBox(_aDialogCreate, GUI_COUNTOF(_aDialogCreate), _cbDialog, WM_HBKWIN, 0, 0); 这是常见的资源列表模式创建。
如果第一行的资源是: FRAMEWIN_CreateIndirect, xxxxxx
那么定时器必须是这么设定: hTimerRefresh=WM_CreateTimer(WM_GetClientWindow(hWin),0,1000,0);
如果第一行的资源是: WINDOW_CreateIndirect, xxxxxx
那么定时器必须是这么设定: hTimerRefresh=WM_CreateTimer(hWin,0,1000,0);
与大家共勉。。。
|
|