How do I gray out system tray menu entries?
- From: "Paco" <paco_beams@xxxxxxxxx>
- Date: Tue, 10 Apr 2007 14:17:25 GMT
I want the ability to gray out entries in my system tray menu.
My system tray implementation call a function every time the right mouse
button "up" is detected. This function builds the menu and activates it. To
create the menu entries I use code lines like this:
::AppendMenu(p_HMenu, MF_STRING, ID_MENU_CONFIGURATION,
"&Configuration..." );
When I want a gray disabled entry, I tried changing code to this:
::AppendMenu(p_HMenu, MF_STRING | MF_GRAYED, ID_MENU_CONFIGURATION,
"&Configuration..." );
It doesn't work. The gray specification seems to be ignored.
How do I get gray menu entries.
.
- Follow-Ups:
- Re: How do I gray out system tray menu entries?
- From: Joseph M . Newcomer
- Re: How do I gray out system tray menu entries?
- From: Ajay Kalra
- Re: How do I gray out system tray menu entries?
- From: AliR \(VC++ MVP\)
- Re: How do I gray out system tray menu entries?
- Prev by Date: Common controls 6 in the debug build?
- Next by Date: Re: SetFocus problem.
- Previous by thread: Common controls 6 in the debug build?
- Next by thread: Re: How do I gray out system tray menu entries?
- Index(es):