How to load a small system icon?
问题 I need to display 16x16 pixel icons for error/warning/information. Unfortunately both LoadIcon(0, IDI_*) and LoadImage(0, OIC_*, IMAGE_ICON, 16, 16, LR_SHARED) always give me the 32x32 version of the icon. I read about ShGetStockIconInfo but that is only available from Vista onwards and I still need to support XP. Any ideas? I'm using Delphi 2010 with a TImage component if that matters. 回答1: The problem is that when you do it this way you get a cached version of the icon, the first one that