Display icon's as 16x16

Using the ExtractIcon API function, i get icons which are
32x32. I want to resize these to 16x16 when:

1:  Showing them on a  TSpeedButton.Glyph.
2:  Drawing them on a popupmenu-canvas, using
ownerdraw menu's.

HowTo ?

LVL 2
mvz121697Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
rene100Connect With a Mentor Commented:
Hi mvz

try to use the DrawIconEx function and set the cxWidth and cyWidth parameters to 16
For the parameter hdc, you can use in 1: the TSpeedButton.Glyph.Canvas.handle (or perhaps the TSpeedButton.Glyph.handle) and in
2: the tPopUp.canvas.handle

regards
rene100
0
All Courses

From novice to tech pro — start learning today.