Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Jun : How to load a standard icon?
| Subject: | How to load a standard icon? |
| Posted by: | "Ian Boyd" (ian.borlandnews0..@avatopia.com) |
| Date: | Fri, 29 Jun 2007 12:51:51 |
i try calling
ico := LoadImage(0, IDI_IDI_ERROR, IMAGE_ICON, 48, 48, LR_SHARED);
but it returns a 32x32 icon.
i try calling
ico := LoadImage(0, IDI_ERROR, IMAGE_ICON, 48, 48, LR_SHARED);
ico := CopyImage(ico, IMAGE_ICON, 48, 48, 0);
but it returns a scaled version of a 32x32 icon.
i try calling
ico := LoadImage(0, IDI_ERROR, IMAGE_ICON, 48, 48, LR_SHARED);
ico := CopyImage(ico, IMAGE_ICON, 48, 48, LR_COPYFROMRESOURCE);
but it returns a scaled version of a 32x32 icon.
i try calling
ico := LoadIcon(0, IDI_ERROR);
ico := CopyImage(ico, IMAGE_ICON, 48, 48, LR_COPYFROMRESOURCE);
but it returns a scaled version of a 32x32 icon
The SDK says:
"LoadIcon can only load an icon whose size conforms to the SM_CXICON and
SM_CYICON system metric values. Use the LoadImage function to load icons of
other sizes."
How do i load a standard icon of "other sizes?"
Note: It is okay to say, "It is not possible."