Hello General,

I have some platform independent code that in Windows must return
something like a "TIcon" (the object is not necessary TIcon, I can
change it) which must be an independent icon to be added to an
imagelist.

I only have a HICON reported by Windows, I try to create a TIcon
using:

Ic:=TIcon.Create;
Ic.Handle:=HICON;

But I'm quite sure this is buggy and also I'm unable to add a TIcon to
the image list in any way.

So, in resume, I need help in a function or alike that receives an
HICON and insert the referenced icon in a given imagelist.

Can anybody help me in the basic steps or function calls needed to
this job ?

I'm using Lazarus 0.9.26.1 and fpc 2.2.2 but SVN versions are valid
for this code as it is in early development.


-- 
Best regards,
 JoshyFun

_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to