Page 1 of 1

How to draw an icon by 2DDrawing lib?

Posted: Tue Jul 20, 2010 2:38 am
by clover
Now I have got the handle of an icon by API such as ExtractIcon(). Of course I can use API function DrawIcon() to display it easily. But how can I manage to diaplay it by PB 2DDrawing lib? Because there is no such a function that takes a handle as its parameter in PB 2DDrawing lib. That is to say, I need a bridge that connects GDI and 2DDrawing lib. Anybody could help me? Thank you!

Re: How to draw an icon by 2DDrawing lib?

Posted: Tue Jul 20, 2010 3:27 am
by Arctic Fox
Doesn't DrawImage() do what you want?
It takes an image handle - ImageID - as parameter (but it seems to work with icons, too).