MCPcopy Create free account
hub / github.com/derceg/explorerplusplus / AddIconToImageList

Method AddIconToImageList

Explorer++/Explorer++/ResourceHelper.cpp:58–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void ResourceHelper::AddIconToImageList(HIMAGELIST imageList, IconResourceLoader *iconResourceLoader, Icon icon,
59 int iconWidth, int iconHeight, IconImageListMapping &imageListMappings)
60{
61 wil::unique_hbitmap bitmap = iconResourceLoader->LoadBitmapFromPNGAndScale(icon, iconWidth, iconHeight);
62 int imagePosition = ImageList_Add(imageList, bitmap.get(), nullptr);
63
64 if (imagePosition == -1)
65 {
66 return;
67 }
68
69 imageListMappings.insert({ icon, imagePosition });
70}

Callers

nothing calls this directly

Calls 3

getMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected