BCGControlBar Library for .NET
OnDrawMenuCheck Method (VisualManager)




Specifies the DrawButtonDef object associated with the menu item to draw.
Defines a location of the image to draw.

Specifies the image from the IMAGES_IDS enumeration to draw.

Called by the framework on redrawing the menu item. Draws an image from IMAGE_IDS enumeration that indicates a current state of the menu item (checked or unchecked). Override this member function in your VisualManager-derived class to customize the redrawing of the checked menu item.

Syntax
'Declaration
 
Public Overridable Sub OnDrawMenuCheck( _
   ByVal vd As DrawButtonDef, _
   ByVal pointCheck As Point, _
   ByVal checkType As IMAGES_IDS _
) 
'Usage
 
Dim instance As VisualManager
Dim vd As DrawButtonDef
Dim pointCheck As Point
Dim checkType As IMAGES_IDS
 
instance.OnDrawMenuCheck(vd, pointCheck, checkType)
public virtual void OnDrawMenuCheck( 
   DrawButtonDef vd,
   Point pointCheck,
   IMAGES_IDS checkType
)
public: virtual void OnDrawMenuCheck( 
   DrawButtonDef* vd,
   Point pointCheck,
   IMAGES_IDS checkType
) 
public:
virtual void OnDrawMenuCheck( 
   DrawButtonDef^ vd,
   Point pointCheck,
   IMAGES_IDS checkType
) 

Parameters

vd
Specifies the DrawButtonDef object associated with the menu item to draw.
pointCheck
Defines a location of the image to draw.
checkType

Specifies the image from the IMAGES_IDS enumeration to draw.

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