I'm writing a Windows app that has a tray icon (displayed next to the system clock). The icon itself looks nice if I run it on Windows XP in a normal (console) session, but when I connect to the same Windows XP machine using Remote Desktop Connection the tray icon looks bad—with jagged edges on the side. Note that the rest of the tray icons look fine, it's just mine that looks crappy. So what is the secret here?
I faced the same issue in the past. You have to load icon with LoadImage
function (not with LoadIcon
).