다음을 통해 공유


why menus from tray notification icons don't go away

I was looking at the documentation for TrackPopupMenuEx() today and saw this in the remarks section.  This, I suspect, explains a lot of frustration I have experienced in the past.

To display a context menu for a notification icon, the current window must be the foreground window before the application calls TrackPopupMenu or TrackPopupMenuEx. Otherwise, the menu will not disappear when the user clicks outside of the menu or the window that created the menu (if it is visible).

So, if you own an app that does this, please fix it.  The World and I thank you for it.

Comments

  • Anonymous
    May 02, 2006
    So if even seasoned MS developers get caught by this one, I guess it means I'm not as stupid as I once thouth I was! :-D
  • Anonymous
    May 02, 2006
    I was actually consulting the documentation for something unrelated when I saw this and felt adequate attention had not been brought to it.