Re: More icon res in LV
- Posted by cafromsw at yahoo.com Jan 09, 2003
- 508 views
I may have confused the issue somewhere along the way, if so I am sorry. I am trying to make a window that looks like a Win9x Explorer window in 'view detail' mode. I am assuming (possible incorrectly) that Windows gets it's icons from shell32.dll, that's why I was using those icons. I thought that all of the Windows 'default' icons are kept there. When Windows displays the icons they look correct. When I display them in my app they look wrong. That's why a put a screenshot on my website, to see if other people get the same results. So I am thinking that either Windows gets it's 16x16 icons from somewhere else or it manipulates the 32x32 in some way that win32lib doesn't. Chris cafromsw at yahoo.com --- jordah at btopenworld.com wrote: > > > ----- Original Message ----- > From: <cafromsw at yahoo.com> > To: "EUforum" <EUforum at topica.com> > Sent: Thursday, January 09, 2003 6:51 PM > Subject: Re: More icon res in LV > > > > Thanks for the feedback. I still can't tell if I > am > > the only one with this problem, or if I am using > > win32lib incorrectly. I was hoping to hear from > > someone involved in the project to find out. > > U don't have to be a win32lib programmer to > understand how things work in > win32lib moreso windows! > > > If > > Windows can display a 32x32 icon properly in an > > LVS_REPORT ListView it seems reasonable that I > should > > be able to as well. I will see if I can figure > out > > how to use stretchBlt() to reduce it to a 16x16 > icon. > > Sorry about the mangled code below but Yahoo mail > > didn't take the paste properly. Chris > > it all depends at times on the number of colors an > icon or image has. if a > high quality image ie having 256 or more colors is > reduced to 16 X 16. there > is bound to be some color loss. Try using an icon > editor and try converting > a 32X32(16bit) icon to 16 X 16 and u'll see what i > mean. this is not windows > fault. it all boils down to resolution. there is no > way u will shrink an > icon by half and expect same quality. it will have > to lose have the color > data. eg 32 X 32 displayed as 16 X 16. will cause > loss, what about the other > colours of the 16 pixels. thuink about it. > > Jordah > > cafromsw at yahoo.com > > > > --- jordah at btopenworld.com wrote: > > > > > > hi all, > > > The image lists were designed to hold images > of > > > same dimensions ie if u > > > made an image list of 16 X 16 all images larger > will > > > be cropped and those > > > smaller will appear "as-is". Also the imagelist > > > functions require a handle > > > because their need to make one large > > > bitmap(memory/compatible) that contains > > > all the images. Using Stretchblt alone,is no use > > > because it actually creates > > > another memory bitmap that is identical to > original > > > but stretched using > > > specified raster operations. The only possible > way > > > known to me at the moment > > > is using the output memory bitmap in the output > DC > > > from stretchblt(). so use > > > GetObjects() to obtain the handle of the bitmap > from > > > the outputDC. Then use > > > that handle. I hope i make some sense. > > > > > > Jordah ferguson > > > > > > ----- Original Message ----- > > > From: "Jonas Temple" <jktemple at yhti.net> > > > To: "EUforum" <EUforum at topica.com> > > > Sent: Wednesday, January 08, 2003 9:49 PM > > > Subject: RE: More icon res in LV > > > > > > > > > > I ran into this when I worked on my xpm icon > > > library (available in > > > > Recent Contributions). What I found was that > when > > > you add an icon to an > > > > image list for displaying in a list view if > the > > > image is larger/smaller > > > > than 16x16 (assuming report view) then this > > > somehow messed up the images > > > > in the image list. I created my list view > with > > > ICON style and then used <snip> > > > >