Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find the icon associated to a certain file type
#4
Dear Gintaras, Let me please extend my inquiry by asking you to comment on the following code, written to populate an ImageList using GetIcon statements:

Function tempf12
Code:
Copy      Help
,__ImageList- il=ImageList_Create(16 16 ILC_MASK|ILC_COLOR32 0 8)
,rep(15) ImageList_ReplaceIcon(il -1 GetIcon(".doc"))
,handle=ImageList_GetIcon(il 5 0)
,SendMessage(id(7 hDlg) BM_SETIMAGE IMAGE_ICON handle)

It is tested and it works, however I am wondering whether there exists a faster way to do it.

Furthermore, I am wondering whether the above ImageList can be saved as .bmp file on disc, for further access.

Many thanks in advance.


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)