x_terminat_or_3
asked on
ExtractAssociatedIcon and 48x48 Icons
Hi all
Is there any way to extract the 48x48 icon?
I have a function like this now (pseudo code)
hIcon=ExtractAssociatedIco n (filename,blabla)
DrawIcon(Picture.Hdc,hIcon )
ListView1.Add Picture1.Picture
With kind regards
Ramses
Is there any way to extract the 48x48 icon?
I have a function like this now (pseudo code)
hIcon=ExtractAssociatedIco
DrawIcon(Picture.Hdc,hIcon
ListView1.Add Picture1.Picture
With kind regards
Ramses
Do you want the icon to be resized to 48 x 48 or want to extract icons that are 48 x 48?
Imran
Imran
ASKER
I want to extract the icons that are 48x48
Sorry I was thinking that you require something like this.....
http://www.mentalis.org/apilist/DrawIconEx.shtml
Imran
http://www.mentalis.org/apilist/DrawIconEx.shtml
Imran
ASKER
This, I already tested before posting this question. The extracted icon is 32x32 and not 48x48
Ramses (x_terminat_or_3)
Ramses (x_terminat_or_3)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
You're right zzzzzzzooc!
This shows the 48x48 icon, and not a 32x32 icon blown up to 48x48
Only thing I noticed since starting with icons is that VB crashes a lot.
Only time that happened before with me, was when I was debuggin a program that uses subclassing and I forgot to turn the subclassing of when debugging. However, that's not the case here, so any idea what may cause this behaviour?
Regards
Ramses (x_terminat_or_3)
This shows the 48x48 icon, and not a 32x32 icon blown up to 48x48
Only thing I noticed since starting with icons is that VB crashes a lot.
Only time that happened before with me, was when I was debuggin a program that uses subclassing and I forgot to turn the subclassing of when debugging. However, that's not the case here, so any idea what may cause this behaviour?
Regards
Ramses (x_terminat_or_3)
>> so any idea what may cause this behaviour?
Depends on what API functions you're using and how. Such as my use of CopyMemory().. if I tried to copy from/to memory I couldn't (for whatever reason), it'd probably throw a "nasty error". It's really hard to narrow it down to anything without a lot of debugging though. Just remember to "clean up".. such as destroying any icons when you're done with them since they won't be released from memory otherwise.
Using this solution, I hope you fully read my prior notes. This might not suit your needs without a lot of tweaking. :) Anyways, good luck.
Depends on what API functions you're using and how. Such as my use of CopyMemory().. if I tried to copy from/to memory I couldn't (for whatever reason), it'd probably throw a "nasty error". It's really hard to narrow it down to anything without a lot of debugging though. Just remember to "clean up".. such as destroying any icons when you're done with them since they won't be released from memory otherwise.
Using this solution, I hope you fully read my prior notes. This might not suit your needs without a lot of tweaking. :) Anyways, good luck.
ASKER
I did read your previous notes.
Thing is, I want to offer my users some shortcuts that already exists in a quick launch panel. So I will have to find a way to read shortcuts, but that's another question...
With kind regards
Ramses
Thing is, I want to offer my users some shortcuts that already exists in a quick launch panel. So I will have to find a way to read shortcuts, but that's another question...
With kind regards
Ramses
ASKER