| 290 | } |
| 291 | |
| 292 | virtual LRESULT WindowProc(UINT Message, WPARAM wParam, LPARAM lParam) { |
| 293 | if(Message!=WM_TIMER || wParam!=TrayIconTimer) return false; |
| 294 | CTime CurrentTime=CTime::GetCurrentTime(); |
| 295 | CTimeSpan period=CurrentTime-StartTime; |
| 296 | if(Duration>0 && Duration<period.GetTotalSeconds()) StopAnimating(); |
| 297 | else if(Icons) { |
| 298 | HICON Icon=*it++; |
| 299 | if(!Icon) { |
| 300 | it=Icons; |
| 301 | Icon=*it++; |
| 302 | } |
| 303 | if(Icon) SetIcon(Icon); |
| 304 | else StopAnimating(); |
| 305 | } |
| 306 | return true; |
| 307 | } |
| 308 | }; |
| 309 | |
| 310 | //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> CAniTrayIcon <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
nothing calls this directly
no outgoing calls
no test coverage detected