473,486 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

About viewing icons...

pnp
I want to display in a form all the icons of an icon file, that has icons
with both 32bit colordepth and 24bit colordepth, simultaneously.
I tried using ImageLists with different colordepth properties but the result
was that the icons that were displayed were all 32bit palleted, having my
systems' pallete set to 32bits and the 24bit ones were displayed only when
my systems' pallete was set to 16bit.

Is there a way to display all the icons simultaneously without changing the
systems pallete?

Thanks,
Peter

Nov 16 '05 #1
2 1275
guy
Hi!
i don't use icons with different colordepth but i know that there is a
problem to use icons with different size in the same imagelist so i hold few
imagelist, each imagelist has different size.

guy

"pnp" wrote:
I want to display in a form all the icons of an icon file, that has icons
with both 32bit colordepth and 24bit colordepth, simultaneously.
I tried using ImageLists with different colordepth properties but the result
was that the icons that were displayed were all 32bit palleted, having my
systems' pallete set to 32bits and the 24bit ones were displayed only when
my systems' pallete was set to 16bit.

Is there a way to display all the icons simultaneously without changing the
systems pallete?

Thanks,
Peter

Nov 16 '05 #2
You can use the overloaded Icon constructor that takes a size parameter.
If an icon of that size is present in the file then that is used to
create the object. But you need to be careful here as if an icon of
therequested size is not present then it will simply create an icon of
the closest available size, which might just be a duplicate of the
orignal icon, so you need to check the size of the returned icon object
to make sure that it is the approrpiate size.

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

pnp wrote:
I want to display in a form all the icons of an icon file, that has icons
with both 32bit colordepth and 24bit colordepth, simultaneously.
I tried using ImageLists with different colordepth properties but the result
was that the icons that were displayed were all 32bit palleted, having my
systems' pallete set to 32bits and the 24bit ones were displayed only when
my systems' pallete was set to 16bit.

Is there a way to display all the icons simultaneously without changing the
systems pallete?

Thanks,
Peter

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4517
by: Simon Harvey | last post by:
Hi everyone, This is probably a pretty stupid question but does anyone know if its possible to use relative addressing when it comes to accessing an image of the file system? In particular, I...
3
3179
by: sto | last post by:
look at this picture http://upload.cs99.net/e.gif i use the function SHGetFileInfo to get file icons. but these icons are not very nice. there are some black things round of the icons. many...
0
977
by: Mohammad-Reza | last post by:
When I extract icons using ExtractIconEx() API icons are different from what that they are appear in their shortcuts or TaskManager and large icons is small with some changes in the small icons! ;)...
1
1134
by: Mika M | last post by:
Hello! I opened 'MyIcon'.ico icon double clicking it in Solution Explorer. After editing and saving I checked it using Windows Explorer. Windows Explorer shows it still like it was before...
6
2345
by: B-Dog | last post by:
Does anyone know where I can find some professional looking icons that are the standard windows collection for developers? The ones that came on the VS cd are pretty lame. Thanks
17
14657
by: Brett | last post by:
I'd like references on where to find some good (quality) icons to use for form and application icons (for the EXE). Most of the free stuff isn't that great looking and there isn't a good...
5
2257
by: Luis Arvayo | last post by:
Hi, - Is there a way to that every form in my app use the same icon withouth adding it to the Icon property one form by one ? - Do I must add to my app the icon(s) I will use in my forms as...
3
3940
by: Pucca | last post by:
HI, I'm using vs2005. There are very few icons I found in the folder of vs2005imagelibrary under the install folder of vs2005. Does anyone know where I can download icons that are typically used...
4
2444
by: Sanoski | last post by:
This might be a dumb question. I don't know. I'm new to all this. How do you find icons for your programs? All GUI applications have cool icons that represent various things. For instance, to save...
0
7094
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7173
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7305
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5427
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4863
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.