473,378 Members | 1,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

NotifyIcon is empty when context menu is owner drawn

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/groups?selm...280a%40phx.gbl

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

Thanks,

Eric
Nov 16 '05 #1
2 2467
Hi,

It is a known bug.

Ken
----------
"Eric" <er**@askthepcpro.com> wrote in message
news:O2*************@TK2MSFTNGP09.phx.gbl...
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/groups?selm...280a%40phx.gbl
Any ideas, resources, etc., are greatly appreciated!

Thanks,

Eric

Nov 16 '05 #2
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

"Eric" <er**@askthepcpro.com> wrote in message
news:O2*************@TK2MSFTNGP09.phx.gbl...
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/groups?selm...280a%40phx.gbl
Any ideas, resources, etc., are greatly appreciated!

Thanks,

Eric

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Rob Mayo | last post by:
OK, maybe this is my opinion, maybe these are bugs. Given the folowing: I have a NotifyIcon on my Form, a Context menu associated with the NotifyIcon, and a MenuItem on the ContextMenu set as...
0
by: James | last post by:
Is there a way to Owner drawn tray context menu ? - I know that there is a bug with the custom drawing of a context menu assigned to a tray icon - but I was hoping someone could advise me as to how...
0
by: A | last post by:
I know it doesn't work. But I'm really trying to figure out is when it might work. Does anyone from MSFT know? or perhaps anyone else in the ng know? I have an application that is entirely run...
2
by: Eric | last post by:
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...
2
by: Derrick | last post by:
I've been working on an application which has a NotifyIcon (system tray icon), and a corresponding ContextMenu. I want to be able to update this menu dynamically. However, when I make changes to...
0
by: Andrew Baker | last post by:
Have a look at the code below. It's a really simple example where I have added two controls to a form, a textbox and a combo box. Both add owner drawn context menus to the controls, but the...
2
by: stillcoding | last post by:
Hi I have a problem with memory usage increasing when I right click to display the context menu on a notifyIcon OS: Windows XP Professional SP2 Software: VS2005 Professional edition SP1 The...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.