Yes, your article was one of only two decent articles I found on this
particular topic. I followed yours first, porting the code over to Visual
Studio 2005 and the Windows Mobile 5 PPC emulator. It exhibits the same
response (or lack thereof) as my second attempt; which is to say, there are
no errors and no invalid handles and nothing to indicate failure. However,
there is also no icon anywhere to be seen.
The other article I found was on Code Project:
http://www.codeproject.com/netcf/compframe2.asp
The current solution I am using is sort of a hybrid between your sample and
their solution. I liked your simplicity, however I needed it to live more
cleanly within a DLL assembly and be more easily used by mid-level developers
in addition to supporting text.
Regardless, none of my attempts render errors or success. Are you able to
port your article's sample to VS2005 and WM5PPC? I would be happy to supply
my attempt if you are interested.
Tony
"Alex Yakhnin [MVP]" wrote:
> Have you tried this?
>
> http://msdn.microsoft.com/library/?u...asp?frame=true
>
> --
> Alex Yakhnin, .NET CF MVP
> www.intelliprog.com | www.opennetcf.org
>
>
> "Tony Selke" wrote:
>
> > I am looking for documentation on how I can use the Windows Mobile 5.0 PPC or
> > Compact Framework 2.0 APIs to add/register an application icon to the
> > "command bar" area at the bottom of the Today screen. I am just looking for
> > a way to add/modify/remove the icon and to trap/respond to the messages it
> > generates (i.e. click/tap events).
> >
> > I have tried using P/Invoke with ShellNotifyIcon and its related
> > functions/structures, however it doesn't produce any visible change to the
> > emulator screen (though all functions execute appropriately and return
> > success-related values). Am I on the right track and just missing a bug or
> > am I totally down the wrong path?
> >
> > Tony