Re: More icon res in LV
- Posted by jordah at btopenworld.com Jan 09, 2003
- 492 views
hi Chris, I think i now get what u are saying. Give me a link to ur website. Jordah ----- Original Message ----- From: <cafromsw at yahoo.com> To: "EUforum" <EUforum at topica.com> Subject: Re: More icon res in LV > > 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 <snip> > >