I'm trying to use this macro to update a menu that pops up when the user right click on my tray icon. The Menu is linked to my CDialog derived class and the handler was inserted by ClassWizard. The Dialog recieve MenuInit message before the menu is displayed but does ot call the update code until the user has clicked on the actual item. Whcih is obviously too late. Any ideas whats happening here?

Regards - Zubair