BCGControlBar Library for .NET
OnHighlightMenuItem Method (VisualManager)




A DrawButtonDef object associated with the menu item to highlight.

Specifies the current text color of the highlighted menu items.

Called by the framework on redrawing menuitem in highlighted state. Fills the menu item by the color of highlighting and can specify the text color in design mode. Override this member function in your VisualManager-derived class to customize the appearance of highlighted menu items.

In addition, you may modify a highlighted item's text color.

Syntax
'Declaration
 
Public Overridable Sub OnHighlightMenuItem( _
   ByVal vd As DrawButtonDef, _
   ByRef clrText As Color _
) 
'Usage
 
Dim instance As VisualManager
Dim vd As DrawButtonDef
Dim clrText As Color
 
instance.OnHighlightMenuItem(vd, clrText)
public virtual void OnHighlightMenuItem( 
   DrawButtonDef vd,
   ref Color clrText
)
public: virtual void OnHighlightMenuItem( 
   DrawButtonDef* vd,
   ref Color clrText
) 
public:
virtual void OnHighlightMenuItem( 
   DrawButtonDef^ vd,
   Color% clrText
) 

Parameters

vd

A DrawButtonDef object associated with the menu item to highlight.

clrText

Specifies the current text color of the highlighted menu items.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

VisualManager Class
VisualManager Members

Send Feedback