Hello David,
> Try without LR_SHARED.
Well, you got something there. Just not what you thought it would be:
I used a test-app which simply puts an icon in the systray. I loaded the
offending icon into the resource file, referenced it and displayed it in the
systray. And whatdoyouknow, it worked perfectly (displaying the 16x16
sub-icon), even though it still had that LR_SHARED argument. [huh?]
Than I got a hunch, and also used, as I did in the malfuntioning app, that
icon also as the one for the app itself (LoadIcon, WM_SETICON) (before
trying to place it in the systray). After that the I got the wrong result
again. [eureka!]
After that I removed the LR_SHARED flag, after which it again behaved as I
wanted it to (displaying the 16x16 sub-icon).
It looks like its not really the LR_SHARED flag or the "nonstandard sizes"
causing the troubles, but the, as far as I can see, fact that that flag
causes it to use a previously-loaded icon, even if it doesn't have the right
dimensions ...
In short, its the sharing-mechanism which seems to act a little dumb :-\
Oh well, another quirk I need to try to remember. :-)
Thanks for your help
Regards,
Rudy Wieser
-- Origional message:
David Lowndes <Dav...@example.invalid> schreef in berichtnieuws
fb5np853i44vof9f7...@4ax.com...