displaying the synchronize icon in the title bar

G

Guest

Hi,

I have written my own custom syncrhonize software which works very well.
What I would like to do is display the animated icon (as per Microsoft
ActiveSync) in the title bar when my synchronize is executing.

Anyone know how to achive this?

Regards
Simon.
 
P

Peter Foot [MVP]

For Pocket PC a titlebar icon can be created using the SHNotificationAdd and
related APIs. AFAIK the only way to simulate animation is to periodically
change the icon used (via SHNotificationUpdate). OpenNETCF SDF has a
Notification implementation to wrap these APIs but would require some
modification using the source code in order to support changing the icon.
The version standard in .NETCF v2.0 - Microsoft.WindowsCE.Forms.Notification
exposes an Icon property so you'd just need to change this from a loop
running in a background thread.

Peter
 
G

Guest

OK thanks.

Regards
Simon.

Peter Foot said:
For Pocket PC a titlebar icon can be created using the SHNotificationAdd and
related APIs. AFAIK the only way to simulate animation is to periodically
change the icon used (via SHNotificationUpdate). OpenNETCF SDF has a
Notification implementation to wrap these APIs but would require some
modification using the source code in order to support changing the icon.
The version standard in .NETCF v2.0 - Microsoft.WindowsCE.Forms.Notification
exposes an Icon property so you'd just need to change this from a loop
running in a background thread.

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top