我想用UCGUI显示光标闪烁。有个大神给了个思路:一个开一个定时器,加个使能闪烁标志。 还要加个定时器的句柄放在edit结构体中,为了删除控件的时候将定时器一并删掉。我在网上找了个例子:
GUI_TIMER_HANDLE g_TimeTimer=NULL;
g_TimeTimer=GUI_TIMER_Create((GUI_TIMER_CALLBACK *)RefreshTime,1000,0,0);
GUI_TIMER_SetPeriod(g_TimeTimer, (GUI_TIMER_TIME)200);
GUI_TIMER_Restart(g_TimeTimer);
void RefreshTime(void)
{
//.........??WM_InvalidWindowRect...????WM_TIMER???????WM_InvalidWindowRect
GUI_TIMER_Restart(g_TimeTimer); /file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/_A~_C_F%60%25IP6P74Q9KE%25$%255.gif????...????????...
}
这样的话,怎么看定时器已经启动了?
光标闪烁的部分加到那里去?
请高手指教,谢谢!
|