How to draw an icon by 2DDrawing lib?

Just starting out? Need help? Post your questions and find answers here.
clover
User
User
Posts: 14
Joined: Tue Dec 30, 2008 4:43 am

How to draw an icon by 2DDrawing lib?

Post 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!
User avatar
Arctic Fox
Enthusiast
Enthusiast
Posts: 609
Joined: Sun Dec 21, 2008 5:02 pm
Location: Aarhus, Denmark

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

Post 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).
Post Reply