I am currently adapting my application for the new QVGA smartphone screen
sizes. When looking at the smartphone builtin applications I wonder which
icon sizes shall be used. It appears to me as if the actual icon sizes have
the rather unconventional dimensions of 22 x 22 pixels for small icons and
44 x 44 pixels for normal icons. Can anybody at Microsoft confirm this. The
available documentation about QVGA support (at leat what I have found) does
not mention anything about icon sizes.
A related topic: In Windows Mobile 5 the applicaton icons displayed in the
programs list obviously can have two states, deselected and selected. Is
there any documentation how to provide these two-state-icons with my
application?
Thanks for help,
Andreas Selle
> A related topic: In Windows Mobile 5 the applicaton icons displayed in the
> programs list obviously can have two states, deselected and selected. Is
> there any documentation how to provide these two-state-icons with my
> application?
I brought that issue up in the beta, and never got an answer. my guess
was SHGetFileInfo() with SHGFI_OPENICON or SHGFI_SELECTED, but that
didn't work.
riki
It takes more muscles to frown than to make a quick left jab.-- Maxine
By Night:
ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
AbstractStart for Smartphone :
http://homepages.inspire.net.nz/~gambit/AbstractStart/
By Day: http://www.EmbeddedFusion.com
I just asked Microsoft about this, and it turns out you do use
SHGFI_SELECTED.
to add this to your app you need to edit the .lnk file in the start menu:
<pseudo-random number>#<target><target args>?:<file class name>
(it was prevously:
<pseudo-random number>#<target><target args>?<module>,<offset>
)
and add:
HKEY_CLASSES_ROOT\<file class name>\SelectIcon
@=<module>,<offset>
riki
A policeman's job is only easy in a police state.-- Orson Welles
For now I settled with 44x44 and 22x22 icon sizes which work nicely and are
not scaled by the OS.
Andreas
"riki" <see_my_home@page> schrieb im Newsbeitrag
news:ObYDbzXu...@TK2MSFTNGP09.phx.gbl...
thanks again.
I always thought that your <pseudo-random number> actually should be the
length of the string that follows after the hash sign. Also found no good
documentation on that, its only mentioned for building help files.
It looks to me as if Microsoft should update their Windows Mobile 5
documentation...
Andreas
"riki" <see_my_home@page> schrieb im Newsbeitrag
news:%23LToJVY...@TK2MSFTNGP14.phx.gbl...
yes, quite a few people think that. perhaps it used to be the case, but
it isn't anymore - i've checked it. if it was it's a buffer overrun
waiting to happen
riki
Taglines are a waste of time. Take this one, for example - it makes no
sense at all.
I got that working, when creating the lnk manually. But I have no idea how
to create such a link through the .INF installation file. The problem is,
that I cannot specify any extra parameters to the link target in the
CEShortcuts section of the file.
Here an example:
[Shortcuts.Programs]
"My App",0,MyApp.exe?:myappclass,%CE11%
This always produces an error in CabWiz:
Error: Section [Shortcuts.Programs] shortcut "My App.lnk" - there is no
matching target file "MyApp.exe?:myappclass" for the current CPU type
So I am stuck again.
I could just install a manually create .lnk file, but them, this won't have
the correct application paths.
Does anybody have an idea?
Andreas
"riki" <see_my_home@page> schrieb im Newsbeitrag
news:%23LToJVY...@TK2MSFTNGP14.phx.gbl...
Your other option is to create a setup.dll. there is an example in the SDK
riki
When the news reporter said "Shopkeepers are opening their doors
bringing out blankets and cups of tea" I just smiled. It's like yes.
That's Britain for you. Tea solves everything.