12-01-2015, 06:54 AM
1. Cannot change icon at run time. Or I don't know how. QM loads the icon from qm.exe resources at startup, and later uses the handle.
Idea 1: Clone qm.exe and replace icons in its resources with a resource editor. Google: free resource editor. But possible problems because qm.exe is signed.
Idea 2: Clone qm.exe, and hide tray icon for one of these qm.exe (in taskbar Properties). When the hidden-icon qm runs, add another icon with AddTrayIcon...
2. Difficult. Better use a common shared file.
Idea 1: Clone qm.exe and replace icons in its resources with a resource editor. Google: free resource editor. But possible problems because qm.exe is signed.
Idea 2: Clone qm.exe, and hide tray icon for one of these qm.exe (in taskbar Properties). When the hidden-icon qm runs, add another icon with AddTrayIcon...
2. Difficult. Better use a common shared file.
