NetXP 3.0 Reference

ICommandBarRenderer.DrawComboBox Method 

Draws a flat combo box.

[Visual Basic]
Function DrawComboBox( _
   ByVal box As ComboBox, _
   ByVal g As Graphics, _
   ByVal rect As Rectangle, _
   ByVal enabled As Boolean, _
   ByVal rightToLeft As Boolean, _
   ByVal drawStyle As DrawStyle _
) As Boolean
[C#]
bool DrawComboBox(
   ComboBox box,
   Graphics g,
   Rectangle rect,
   bool enabled,
   bool rightToLeft,
   DrawStyle drawStyle
);

Parameters

box
The combo box.
g
The graphics object.
rect
The item's bounds.
enabled
Is the combo box enabled?
rightToLeft
Is the combo box right-to-left?
drawStyle
The combo box state.

Return Value

True if custom drawn.

See Also

ICommandBarRenderer Interface | NETXP.Controls.Bars Namespace