| 272 | #define TrayIconTimer 1032 |
| 273 | |
| 274 | BOOL Animate(UINT nDelayMilliSeconds, int nNumSeconds=-1) { |
| 275 | if(!Icons) return FALSE; |
| 276 | StopAnimating(); |
| 277 | it=Icons; |
| 278 | StartTime=CTime::GetCurrentTime(); |
| 279 | Duration=nNumSeconds; |
| 280 | hIcon=GetIcon(); |
| 281 | TimerID=SetTimer(TrayIconTimer, nDelayMilliSeconds, 0); |
| 282 | return TimerID != 0; |
| 283 | } |
| 284 | |
| 285 | void StopAnimating() { |
| 286 | if(TimerID) KillTimer(TimerID); |
nothing calls this directly
no outgoing calls
no test coverage detected