MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / WindowProc

Method WindowProc

cppcryptfs/ui/TrayIcon.h:292–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected