30 item.mask = LVIF_IMAGE;
31 item.iImage = icons[pathToIcon];
32 item.iItem =
static_cast<int>(index);
41 item.iItem =
static_cast<int>(index);
42 item.mask = LVIF_IMAGE;
46 return icons[item.iImage];
53 item.iItem =
static_cast<int>(index);
54 item.mask = LVIF_IMAGE;
Provides adding, deleting, setting, getting items for other list view interfaces.
virtual void getItem(LVITEMW &item) const
virtual size_t size() const final
virtual LRESULT addItem(const LVITEMW &item)
virtual LRESULT addIconItem(const std::filesystem::path &pathToIcon)
virtual std::filesystem::path getIconPath(size_t index) const
IIconListView(HWND handle, utility::IconsHolder &icons)
virtual LRESULT insertIconItem(const std::filesystem::path &pathToIcon, size_t index)
virtual size_t getIconIndex(size_t index) const
virtual bool contains(const std::filesystem::path &pathToImage) const final
uint16_t addImage(const std::filesystem::path &pathToIcon) override