Re: Loading Small System Icons

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Steve Thresher a écrit :

Doesn't make any difference. The icon is loaded, added to an image list and then drawn by the image list.

some time ago, when I wrote an ImageList wrapper, I'd experience the
same trouble, my understanding was that LoadImage(..., IMAGE_ICON, ...),
as well as LoadIcon, returns the first available icon with required size
(doc. says that it should be the "most appropriate for the current
display").

actually the icons were finely drawn only when the .ico file or loaded
icon suite does not contain 16clr icon, nor 32x32px icon - from tests
with tailored .ico file, it appears that LoadImage(..., 16,16, ...)
may load the 32x32px and resample it.

finally I now always use 256clr bitmap to build my image-list, it
requires you to extract all needed icons and build that bitmap, at
least once.

Sylvain.
.



Relevant Pages

  • Re: Animating Tray Icon using Shell_NotifyIcon
    ... > icon file type. ... > LoadIcon is an API function; ... > Resources in a program have types in addition to their names. ... not in the bitmap section. ...
    (alt.comp.lang.borland-delphi)
  • Re: Animating Tray Icon using Shell_NotifyIcon
    ... > the Icon specifications. ... LoadIcon is an API function; ... have a bitmap resource named "IMAGE" and you can havean icon resource ... not in the bitmap section. ...
    (alt.comp.lang.borland-delphi)
  • ImageList_Draw and icons with alpha channel
    ... I'm creating a memory DC which is compatible to the desktop's DC. ... the background color to GetSysColorand the text color ... The next thing I do is draw an icon into that DC using ImageList_Draw ... I fill a rectangle next to the drawn icon with COLOR_HIGHLIGHT and draw ...
    (microsoft.public.win32.programmer.gdi)
  • ImageList_Draw and icons with alpha channel
    ... I'm creating a memory DC which is compatible to the desktop's DC. ... the background color to GetSysColorand the text color ... The next thing I do is draw an icon into that DC using ImageList_Draw ... I fill a rectangle next to the drawn icon with COLOR_HIGHLIGHT and draw ...
    (microsoft.public.win32.programmer.ui)
  • Re: "Explain the icon" -- the answer
    ... If not for the explanation and the location where I saw this, ... The icon was drawn in the style often used for diagrammatic maps like ... reduced to straight lines at angles in multiples of 45 degrees -- one ...
    (rec.puzzles)