BUG: The ContextMenu control that is associated with the NotifyIcon component is not displayed when you set the OwnerDraw property of menu items in the ContextMenu control to true (827043)
The information in this article applies to:
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual Basic .NET (2002)
- Microsoft Visual C# .NET (2003)
- Microsoft Visual C# .NET (2002)
SYMPTOMSYou set the OwnerDraw property of menu items in the ContextMenu control to true, and then you set ContextMenu and the Icon properties of the NotifyIcon component. When you run the Microsoft Windows application and
then you right-click the Notify icon in the status notification area, menu
items that are in the ContextMenu control that is associated with the NotifyIcon component are not displayed. CAUSEThis bug occurs because the NotifyIcon component receives the WM_DRAWITEM message and the WM_MEASUREITEM message, but NotifyIcon does not handle the DrawItem event and the MeasureItem event of the menu items. Therefore, menu items are not displayed
in ContextMenu when you right-click the Notify icon. STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.REFERENCESFor more information, visit the following Microsoft Web
site:
Modification Type: | Minor | Last Reviewed: | 2/9/2006 |
---|
Keywords: | kbvs2005swept kbvs2005doesnotapply kbvs2002sp1sweep kbIcon kbForms kbWindowsForms kbCtrl kbContMenu kbControl kbbug KB827043 kbAudDeveloper |
---|
|