Solved

Display icon's as 16x16

Posted on 1998-04-15
1
214 Views
Last Modified: 2010-04-06
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 ?

0
Comment
Question by:mvz121697
1 Comment
 
LVL 2

Accepted Solution

by:
rene100 earned 50 total points
ID: 1361531
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

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now