A couple of problems...
-
Hi, I am doing some owner drawn menus that are supposed to display when right clicking on a NotifyIcon in the Tray. This has lead me to discover these 2 issues... 1. You can't use the OwnerDraw property on menuitems that are added to the "ContextMenu" property of a NotifyIcon. When you do, the user defined "MeasureItem" and "DrawItem" events never fire so you end up with a blank menu. - I fixed this by switching to use the NotifyIconEx that I downloaded from this site, and all my menus work fine then. 2. When you call e.DrawBackground() in the DrawItem event of the menu it draws the correct highlight color, but it draws the background as "KnownColor.Window" instead of "KnownColor.Menu" when the item isn't selected. Does anybody know anything about these 2 things? Anybody know any way to get this work correctly? Or are they already working correctly and I just didn't RTFM? Cheers, Chris.