Click here to get back home

How do you use the small icon?

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
How do you use the small icon? Jerry 08-09-2006
Posted by Jerry on August 9, 2006, 10:01 am
Please log in for more thread options
I'm working with Mobile 5.0 SDK, using native (win32 sdk-style) code, on a
Motorola Q.

I've included in my project both a 44x44, 256 color icon and a 22x22, 256
color icon. The 44x44 version is the one referenced in the WNDCLASS struct
when registering the window class, and it appears properly in the 'start'
menu ... but the icon shown in the MRU list (which should be 22x22) is the
44x44 version which has been shrunken to fit, and which looks terrible.
It's obvious that other apps are showing 2 different versions of the icon
(small and large) ... what do I have to do to make the program use the
smaller supplied icon when appropriate to do so.

My first thought was to just use WNDCLASSEX, which has an entry for small
icon ... but that struct and the RegisterClassEx functions don't appear to
be available in the mobile 5 sdk ...

Anyone have a clue?




Posted by Paul Kay on August 10, 2006, 6:46 am
Please log in for more thread options
Jerry,

It sounds like you have created and included seperate icon files for each
size, is that so?

Icon Files can contain multiple icons each of a different size.

You should create a single icon file containing each size you or the OS
require.

PK

> I'm working with Mobile 5.0 SDK, using native (win32 sdk-style) code, on a
> Motorola Q.
>
> I've included in my project both a 44x44, 256 color icon and a 22x22, 256
> color icon. The 44x44 version is the one referenced in the WNDCLASS
> struct when registering the window class, and it appears properly in the
> 'start' menu ... but the icon shown in the MRU list (which should be
> 22x22) is the 44x44 version which has been shrunken to fit, and which
> looks terrible. It's obvious that other apps are showing 2 different
> versions of the icon (small and large) ... what do I have to do to make
> the program use the smaller supplied icon when appropriate to do so.
>
> My first thought was to just use WNDCLASSEX, which has an entry for small
> icon ... but that struct and the RegisterClassEx functions don't appear to
> be available in the mobile 5 sdk ...
>
> Anyone have a clue?
>
>
>



Posted by Jerry on August 10, 2006, 8:30 am
Please log in for more thread options
Yes .. I had simply included separate ico files, not knowing any better.
I've tried imbedded both icons in a single file, and it worked like a charm.
Thanks very much for your input.

Now I'm wondering if perhaps I should include 2 ico files, one with 44x44
and 22x22 icons, and the other with 32x32 and 16x16 .. then I could use
GetSystemMetrics at program start to determine large and small icon sizes,
and use the appropriate icon file when I register the window class. Does
that sound like a reasonable approach, given the different screen sizes of
smartphones?


> Jerry,
>
> It sounds like you have created and included seperate icon files for each
> size, is that so?
>
> Icon Files can contain multiple icons each of a different size.
>
> You should create a single icon file containing each size you or the OS
> require.
>
> PK
>
>> I'm working with Mobile 5.0 SDK, using native (win32 sdk-style) code, on
>> a Motorola Q.
>>
>> I've included in my project both a 44x44, 256 color icon and a 22x22, 256
>> color icon. The 44x44 version is the one referenced in the WNDCLASS
>> struct when registering the window class, and it appears properly in the
>> 'start' menu ... but the icon shown in the MRU list (which should be
>> 22x22) is the 44x44 version which has been shrunken to fit, and which
>> looks terrible. It's obvious that other apps are showing 2 different
>> versions of the icon (small and large) ... what do I have to do to make
>> the program use the smaller supplied icon when appropriate to do so.
>>
>> My first thought was to just use WNDCLASSEX, which has an entry for small
>> icon ... but that struct and the RegisterClassEx functions don't appear
>> to be available in the mobile 5 sdk ...
>>
>> Anyone have a clue?
>>
>>
>>
>
>



Posted by Paul Kay on August 10, 2006, 9:55 am
Please log in for more thread options
Jerry,

I think, though I have not tried it, so I could be wrong, that you just need
to include all of the different icon sizes in the single icon file and the
OS at least will look for and use the correct one for it's needs depending
on whether the application is running on a 176*220 / 32x32 16x16 smartphone
or a 240*320 44x44 22x22 smartphone.

PK


> Yes .. I had simply included separate ico files, not knowing any better.
> I've tried imbedded both icons in a single file, and it worked like a
> charm. Thanks very much for your input.
>
> Now I'm wondering if perhaps I should include 2 ico files, one with 44x44
> and 22x22 icons, and the other with 32x32 and 16x16 .. then I could use
> GetSystemMetrics at program start to determine large and small icon sizes,
> and use the appropriate icon file when I register the window class. Does
> that sound like a reasonable approach, given the different screen sizes of
> smartphones?
>
>
>> Jerry,
>>
>> It sounds like you have created and included seperate icon files for each
>> size, is that so?
>>
>> Icon Files can contain multiple icons each of a different size.
>>
>> You should create a single icon file containing each size you or the OS
>> require.
>>
>> PK
>>
>>> I'm working with Mobile 5.0 SDK, using native (win32 sdk-style) code, on
>>> a Motorola Q.
>>>
>>> I've included in my project both a 44x44, 256 color icon and a 22x22,
>>> 256 color icon. The 44x44 version is the one referenced in the WNDCLASS
>>> struct when registering the window class, and it appears properly in the
>>> 'start' menu ... but the icon shown in the MRU list (which should be
>>> 22x22) is the 44x44 version which has been shrunken to fit, and which
>>> looks terrible. It's obvious that other apps are showing 2 different
>>> versions of the icon (small and large) ... what do I have to do to make
>>> the program use the smaller supplied icon when appropriate to do so.
>>>
>>> My first thought was to just use WNDCLASSEX, which has an entry for
>>> small icon ... but that struct and the RegisterClassEx functions don't
>>> appear to be available in the mobile 5 sdk ...
>>>
>>> Anyone have a clue?
>>>
>>>
>>>
>>
>>
>
>



Posted by Jerry on August 10, 2006, 10:39 am
Please log in for more thread options
Thanks again for your reply. That would certainly be a cleaner solution,
and even though the only actual phone I have is a Q, I should be able to
test it using the available emulators. I'll give it a try.


> Jerry,
>
> I think, though I have not tried it, so I could be wrong, that you just
> need to include all of the different icon sizes in the single icon file
> and the OS at least will look for and use the correct one for it's needs
> depending on whether the application is running on a 176*220 / 32x32 16x16
> smartphone or a 240*320 44x44 22x22 smartphone.
>
> PK
>
>
>> Yes .. I had simply included separate ico files, not knowing any better.
>> I've tried imbedded both icons in a single file, and it worked like a
>> charm. Thanks very much for your input.
>>
>> Now I'm wondering if perhaps I should include 2 ico files, one with 44x44
>> and 22x22 icons, and the other with 32x32 and 16x16 .. then I could use
>> GetSystemMetrics at program start to determine large and small icon
>> sizes, and use the appropriate icon file when I register the window
>> class. Does that sound like a reasonable approach, given the different
>> screen sizes of smartphones?
>>
>>
>>> Jerry,
>>>
>>> It sounds like you have created and included seperate icon files for
>>> each size, is that so?
>>>
>>> Icon Files can contain multiple icons each of a different size.
>>>
>>> You should create a single icon file containing each size you or the OS
>>> require.
>>>
>>> PK
>>>
>>>> I'm working with Mobile 5.0 SDK, using native (win32 sdk-style) code,
>>>> on a Motorola Q.
>>>>
>>>> I've included in my project both a 44x44, 256 color icon and a 22x22,
>>>> 256 color icon. The 44x44 version is the one referenced in the
>>>> WNDCLASS struct when registering the window class, and it appears
>>>> properly in the 'start' menu ... but the icon shown in the MRU list
>>>> (which should be 22x22) is the 44x44 version which has been shrunken to
>>>> fit, and which looks terrible. It's obvious that other apps are showing
>>>> 2 different versions of the icon (small and large) ... what do I have
>>>> to do to make the program use the smaller supplied icon when
>>>> appropriate to do so.
>>>>
>>>> My first thought was to just use WNDCLASSEX, which has an entry for
>>>> small icon ... but that struct and the RegisterClassEx functions don't
>>>> appear to be available in the mobile 5 sdk ...
>>>>
>>>> Anyone have a clue?
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>



Similar ThreadsPosted
Start Icon - change icon image when they have focus? April 4, 2006, 12:01 pm
SQL Server Everywhere Edition to be released for devices big and small April 6, 2006, 2:15 pm
Why are my TreeView node buttons drawn so small? March 22, 2007, 10:44 am
Small case study J2ME vs WM5, audio recording... September 25, 2006, 12:30 am
Icon on the homescreen May 31, 2005, 3:57 pm
App icon specification June 7, 2006, 5:17 pm
Specify Application Icon with C++? November 4, 2006, 4:26 am
highlight icon May 18, 2007, 6:03 pm
Icon in title bar September 11, 2007, 4:46 am
Application Icon Transparency June 14, 2005, 11:45 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap