NotifyIcon is empty when context menu is owner drawn

E

Eric

I implemented owner drawing on the main and context menus of my main form.
It works fine.

There is also a notify icon control that has a context menu. When the icon
is in the status bar, it works perfectly fine when it is double-clicked.
However, when I try to initialize the notify icon's context menu as an
owner-drawn menu, all the text in that menu disappears.

Is owner drawing a notify icon's context menu possible? I saw someone else
having the same problem:
http://groups.google.com/[email protected]

Any ideas, resources, etc., are greatly appreciated!

Thanks,

Eric
 
D

DalePres

You can have a context menu on a notify icon and it will work fine. What
you can't have is an owner drawn context menu because NotifyIcon doesn't
pass the DrawItem or MeasureItem events to the ContextMenu.

See KB #827043.

Dale
 

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