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

Method SetIcons

cppcryptfs/ui/TrayIcon.h:260–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258 virtual BOOL KillTimer(INT_PTR nIDEvent) =0;
259
260 void SetIcons(const UINT IconIDs[]) { // NULL Terminated Array of Icon Recource IDs to animate
261 const UINT* ptr=IconIDs;
262 int i;
263 for(i=1; *ptr++; ++i); //Count them
264 if(Icons) delete Icons;
265 it=Icons=new HICON[i]; //Prepare storage for their HICONs
266 const CWinApp* App=AfxGetApp();
267 ASSERT(App);
268 for(ptr=IconIDs; i=*ptr++; *it++=App->LoadIcon(i)); //Store the HICONs
269 *it=0; //NULL Terminate the list
270 }
271
272#define TrayIconTimer 1032
273

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected