|
Posted by Lisa Pearlson on May 22, 2007, 10:42 pm
Please log in for more thread options Sure does!
Haven't tried it yet though.
Thanks!
> Lisa Pearlson wrote:
>> Thanks Riki,
>>
>> But the answer, I do not understand:
>>
>> "And starting with WM 5.0 you can also override the icon associated with
>> a link (which is what ends up in the start menu folder) with a class
>> (before you could only override it with a single icon), using the
>> following syntax in the icon file:"
>>
>> I am not talking about file extensions, but start menu links..
>> It says you can associate shortcut links with a class, like so:
>>
>> <ignored>#<target app>?:classname
>>
>> What is this supposed to me? Do they mean I have to register my
>> application window with particular (unique) classname, and then register
>> the 2 icons under HKCR registry key? When my application isn't running,
>> how does it know the classname of my application?
>
> So what happens is your installer creates in the registry:
>
> [HKCU\MyAppClass\DefaultIcon\]
> @="\Somewhere\Myapp.exe,-<ResourceID>"
> [HKCU\MyAppClass\SelectIcon\]
> @="\Somewhere\Myapp.exe,-<ResourceID>"
>
> Then you install your app you will have a shortcut (.lnk) which will say:
> 0#\Somewhere\Myapp.exe?:MyAppClass
>
> 'MyAppClass' is anything you want it to be, there is no special
> registration you need to do, and your app does not need to be running.
>
> Does that answer your question?
>
> Riki
>
> --
> ThemeChanger and AbstractStart for Smartphone :
> http://www.IfIHadADollarForEveryTimeSomeoneSaidThatIWouldHaveMyOwnWebiste.com/
>
> If life's a stage, I want better lighting.
|