How to draw an icon by 2DDrawing lib?
How to draw an icon by 2DDrawing lib?
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!
- Arctic Fox
- Enthusiast
- Posts: 609
- Joined: Sun Dec 21, 2008 5:02 pm
- Location: Aarhus, Denmark
Re: How to draw an icon by 2DDrawing lib?
Doesn't DrawImage() do what you want?
It takes an image handle - ImageID - as parameter (but it seems to work with icons, too).
It takes an image handle - ImageID - as parameter (but it seems to work with icons, too).