How to add icons to the Command Bar on the Today Screen?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
The SDF (www.opennetcf.org/sdf/) contains the
OpenNETCF.Windows.Forms.NotifyIcon which wraps the ShellNotifyIcon API in a
component which I wrote so that it closely matches the desktop equivalent.
It also has designer support.

Peter
 
This worked great, thank you! I ended up getting the 1.4 source code because
the 2.0 release appears to be binaries-only at this time (though I recompiled
the NotifyIcon class and it's dependancies onder CF 2.0).

Do you know when the 2.0 source code is expected to be made available?

Thanks again!

Tony
 
Hi Tony,

I am planning to do the same thing.

Can u please pass me on what to do and how to do.If you have example
projects that would be awesome.

Thanks very much.

Cheers

Chandra
 
Back
Top