Hello!

I have a small window that is of size 16x16 px. I also have
an icon resource with two sizes: 16x16 and 32x32. On non-VGA devices,
when I use DrawIcon() the 16x16 icon gets drawn and everything look good.

However, as you already know, on VGA devices, WinCE resizes this window
to real 32x32 pixels, and also resizes the icon, so it look pixelated.

Is there a way I could draw 32x32 icon in my 16x16 (physically 32x32)
window?

Greetings,

Esad

Re: DrawIcon on VGA by Chris

Chris
Wed Feb 01 13:53:36 CST 2006

Have you tried using 2 different icon resources and using the 32x32 icon
only in VGA mode?

"Esad Hajdarevic" <esad-remove-this-@esse.at> wrote in message
news:43e09804$0$713$79720d31@newsreader.inode.at...
> Hello!
>
> I have a small window that is of size 16x16 px. I also have
> an icon resource with two sizes: 16x16 and 32x32. On non-VGA devices,
> when I use DrawIcon() the 16x16 icon gets drawn and everything look good.
>
> However, as you already know, on VGA devices, WinCE resizes this window to
> real 32x32 pixels, and also resizes the icon, so it look pixelated.



Re: DrawIcon on VGA by esad

esad
Sat Feb 04 04:02:46 CST 2006

This seems to work, however I cannot detect if my application is
running on VGA device. My test device is Dell Axim x51v, but however

GetDeviceCaps(hdc, LOGPIXELSX) returns 96

I've also included the HI_RES_AWARE resource.

Greetings,

Esad

Chris Scott schrieb:

> Have you tried using 2 different icon resources and using the 32x32 icon
> only in VGA mode?
>
> "Esad Hajdarevic" <esad-remove-this-@esse.at> wrote in message
> news:43e09804$0$713$79720d31@newsreader.inode.at...
> > Hello!
> >
> > I have a small window that is of size 16x16 px. I also have
> > an icon resource with two sizes: 16x16 and 32x32. On non-VGA devices,
> > when I use DrawIcon() the 16x16 icon gets drawn and everything look good.
> >
> > However, as you already know, on VGA devices, WinCE resizes this window to
> > real 32x32 pixels, and also resizes the icon, so it look pixelated.


Re: DrawIcon on VGA by Esad

Esad
Sun Feb 05 06:52:54 CST 2006

> This seems to work, however I cannot detect if my application is
> running on VGA device. My test device is Dell Axim x51v, but however
>
> GetDeviceCaps(hdc, LOGPIXELSX) returns 96

Hm, I've read somewhere that is bug in the device (display driver or
something), so I've found another way how to this this

if BitBlt()-ing 32x32px resource on a 16x16 window fails then the screen
is lo-res, and if it suceeds, it supports hi-resolution

I know it is an ugly workaround but it works.

Greetings,

Esad