Notification icons in Vista. Popup UI?

by Matt 9. April 2007 16:56

I've just hit the msdn page for NOTIFYICONDATA, the structure passed through to Shell_NotifyIcon. It's been updated with Vista information. There have been a few changes, mostly quite dull, but check out this teaser for a new value for flags (red text emphasis mine):

NIF_SHOWTIP

Windows Vista and later: Use the standard ToolTip. When uVersion is set to NOTIFYICON_VERSION_4, the standard ToolTip is replaced by the application-drawn pop-up user interface (UI). If the application wants to show the standard tooltip in that case, regardless of whether the on-hover UI is showing, it can specify NIF_SHOWTIP to indicate the standard tooltip should still be shown. Note that the NIF_SHOWTIP flag is effective until the next call to Shell_NotifyIcon.

So, is this "application-drawn pop-up user interface" what's providing the fancy images for the battery, network and volume icons?

And if so, how do you actually draw it? That's not mentioned anywhere. (Well, it does say "application-drawn", so perhaps the question should be where? And how big? And do I have to do it all myself?)

One indication that this is what is being referred to is that these three icons don't actually appear in the normal notification area in Vista. Fire up Spy++ and it shows that these icons live in a window with a caption of "System Control Area" rather than the normal "Notification Area". This is mentioned in the NOTIFYICONDATA docs:

These icons are scaled down when they are displayed in the System Tray or System Control Area (SCA).

But that raises the question about how to add something to the SCA. Is that the guid is for in the struct?

PS. It's worth reading the remarks section for NOTIFYICONDATA; there's more going on with notification icons than you might first think. Balloon tips are queued. They display between 10 and 30 seconds, and this time doesn't start if you're not using your machine, or the screen saver is running. With Vista, they also don't appear when you're in in presentation mode. Shame you have to remember all of that when you need to roll your own.

Tags:

Vista

Comments (27) -

Roger Lipscombe
10/15/2007 11:46:22 AM #

RE: Notification icons in Vista. Popup UI?

You handle the NIN_POPUPSHOW message and create your own window (e.g. using vanilla CreateWindow). When you receive NIN_POPUPHIDE, you get rid of it again.

The "anchor coordinates" passed in wParam are a hint for where to put it. You can figure out the correct rectangle by playing with SHAppBarMessage to get the taskbar position.

Reply

skin laser treatment
skin laser treatment
2/16/2011 11:39:14 AM #

A powerful share, I just given this onto a colleague who was doing a little evaluation on this. And he the truth is purchased me breakfast as a result of I discovered it for him.. smile. So let me reword that: Thnx for the treat! However yeah Thnkx for spending the time to debate this, I feel strongly about it and love studying more on this topic. If potential, as you grow to be expertise, would you mind updating your weblog with more details? It is highly helpful for me. Huge thumb up for this weblog publish!

Reply

unsecured personal loan online
unsecured personal loan online
3/2/2011 10:03:37 PM #

This is my issue for my running  semester project n I don’t know how I could express my thanks for much  kind of help you did for building my project  suerbly. My name is shown & I  am working on  related subject for a grand  documentation and found your blog on top page of google .You contain a  good &  smooth user interface along with  huge stuffs on your site .I  as well  handle a own web site and  now you are in my favorite internet site listing . many thanks for the  terrific aid.all the best .

Reply

suv review
suv review
7/20/2011 10:22:22 PM #

it ti permette di orientarti con semplicità nel pulviscolare niverso di Moncler.Troverai le indicazioni per lo spaccio o negozio Moncler più vicino a casa tua felpe moncler, pantaloni e abbigliamento sportivo.

Reply

iphone 4 apps
iphone 4 apps
7/23/2011 7:55:59 PM #

I've recently began a weblog, the data you provide on this site has helped me tremendously. Thanks for all your time & work.

Reply

iphone developer program
iphone developer program
7/24/2011 4:32:18 AM #

Hi, just required you to know I he added your website to my Google bookmarks due to your layout. But seriously, I consider your net web-site has 1 in the freshest theme I??ve came across. It extremely helps make studying your blogging site significantly easier.

Reply

LAURENCE  Debora
LAURENCE Debora
7/27/2011 10:48:09 AM #

Bienvenue sur annuaires-gratuit.com.Des fonctionnalités inédites, nombreuses annuaires.

Reply

DEBORA Laurence
DEBORA Laurence
8/1/2011 8:35:13 AM #

Il ne vous reste plus qu' à créer votre propre annuaire, l'inscription est  gratuite .

Reply

Michael Cole
Michael Cole United States
9/12/2011 6:26:44 AM #

Astonishingly helpful appreciate it, I reckon your current readers could perhaps want further articles like that keep up the great work.

Reply

Andrew Jefferson
Andrew Jefferson United States
10/12/2011 5:13:12 AM #

Really insightful bless you, I think your trusty visitors would probably want way more reviews such as this carry on the great work.

Reply

proto
proto United States
10/27/2011 4:42:50 AM #

hi, this is my comment

Reply

monster dr dre
monster dr dre
10/30/2011 6:03:44 PM #

Love is a carefully designed lie.

Reply

pacquiao vs marquez  online
pacquiao vs marquez online
11/6/2011 12:39:55 AM #

your blog is very useful and informative....",)

Reply

Azuan
Azuan United States
11/12/2011 6:08:40 AM #

What's up, for all time i used to check webpage posts here in the early hours in the morning, for the reason that i like to find out more and more.

Reply

philix
philix United States
11/19/2015 11:43:57 AM #

wonderful web site

Reply

Modesto Ziems
Modesto Ziems United States
1/15/2016 4:34:21 AM #

the style of keeping you connected with so many things of different types is awesome and you find it interesting everytime.

Reply

Lashawn Ulwelling
Lashawn Ulwelling United States
1/15/2016 4:58:40 AM #

Congratulations, Neil! I love this site and I know I'll love the book. Christmas, birthdays, Father's Day 2010  check!

Reply

Douglas Ramler
Douglas Ramler United States
1/15/2016 8:31:18 AM #

AWESOME!Can't wait for that, will be something to want to accomplish day by day, to do something AWESOME!

Reply

Willis Karam
Willis Karam United States
1/15/2016 8:32:34 AM #

I love the dolphin saving you one.

Reply

Irvin Dewinter
Irvin Dewinter United States
1/15/2016 8:54:55 AM #

I can't wait to read this masterpiece. Ordering off the menu at fast food restaurants and old dangerous playground equipment have to be in the book!

Reply

amazing sex videos
amazing sex videos United States
2/7/2017 11:16:41 AM #

Spot on with this write-up, I actually believe that this site needs much more attention. I’ll probably be back again to read more, thanks for the advice!

Reply

May I simply just say what a relief to discover somebody who genuinely understands what they're talking about online. You actually know how to bring a problem to light and make it important. A lot more people need to check this out and understand this side of your story. I was surprised you are not more popular because you surely possess the gift.

Reply

Jina Nealy
Jina Nealy United States
5/18/2017 12:57:48 AM #

Ashley Sky's Underwear Commercial Got Banned for All the Best Reasons

Reply

gold porn
gold porn United States
5/28/2017 2:47:27 AM #

unexpected porn

Reply

file a patent
file a patent United States
5/31/2017 7:04:35 AM #

I must thank you for the efforts you've put in penning this site. I really hope to check out the same high-grade content from you in the future as well. In fact, your creative writing abilities has motivated me to get my own, personal website now ;)

Reply

blogspot
blogspot United States
5/31/2017 11:59:05 AM #

fursuit porn

Reply

blogspot
blogspot United States
6/1/2017 2:08:40 PM #

arab porn

Reply

Add comment

biuquote
  • Comment
  • Preview
Loading

Rel=Me

Month List

RecentComments

Comment RSS