Solved

Display icon's as 16x16

Posted on 1998-04-15
1
216 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

809 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