Location of tray icon is blocked

A

arunmib

Hi all,
I am developing an application for Pocket PCs. In it if the
user clicks the 'close' button, then the application minimizes to tray.
So when the user wants to use the application again he just have to
click the tray icon.

My issue is after uninstalling the
application from the device, the location allocated for the tray icon
is blocked. So if i reinstall the application the tray icon gets
created near the old location and not in the old location although it
is free and not used by other application . This old location is
blocked that no other application is able to use it until a soft reset.


Anyway to regain it without doing a soft reset.

Regards,

Arun.
 
P

Peter Foot [MVP]

How are you creating the tray icon? Assuming you are P/Invoking
Shell_NotifyIcon you need to call it with NIM_DELETE to remove the icon.

Peter
 
A

arunmib

Hi peter,
Thank you for the reply. My code is in the way as you have
suggested. I would like to be elbaorative, that my tray icon is being
deleted but the location in which the tray icon was present is left
blank and unusable by other application(even if i install my
application again) to load it's tray icon in that place.

Hope this gives more info.
Expecting some help guys.

Regards,

Arun.
 
P

Paul G. Tobey [eMVP]

If you tap on it, it's still "blocked"? When the application disappears
from the device, the shell can no longer get to the icon, so it can't
display it there any more. However, it thinks that the application still
wants *something* displayed and won't actually remove the now-empty icon
until it realizes that the application is gone, which, in my experience,
happens when you tap on the empty location. Remove the icon *correctly*
from the tray when your application exits and this should no longer happen.

Paul T.
 

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