mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
smart combobox control
This commit is contained in:
@@ -154,7 +154,7 @@ namespace CUEControls
|
||||
if (open)
|
||||
flags |= GetInfoFlags.SHGFI_OPENICON;
|
||||
SHFILEINFO info = new SHFILEINFO();
|
||||
SHGetFileInfo(filename.FullName, (uint)filename.Attributes, ref info, (uint)Marshal.SizeOf(info), (uint)flags);
|
||||
SHGetFileInfo(filename.FullName, filename.Exists ? (uint)filename.Attributes : 0, ref info, (uint)Marshal.SizeOf(info), (uint)flags);
|
||||
iIcon = MapIcon(info.hIcon, info.iIcon);
|
||||
DestroyIcon(info.hIcon);
|
||||
return iIcon;
|
||||
|
||||
Reference in New Issue
Block a user