|
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?
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
|