Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Combobox / Listbox icon based on file
#2
ComboBox and ListBox controls can display icons if they have owner-draw style. Then need to create code to draw icons. Quite much work.
Alternative: use SysListView32 control instead of ListBox. Use ComboBoxEx32 control instead of ComboBox. These controls support imagelists. Quite much work too.

To get file type icon:
Macro Macro2418
Code:
Copy      Help
__Hicon hi=GetFileIcon(".txt")
__Hicon hiFolder=GetFileIcon("$qm$")


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)